Commit 634b927f authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Do not fail on zero packets.

Originally committed as revision 18328 to svn://
parent 0be9e73e
......@@ -444,7 +444,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
ret= av_get_packet(s->pb, pkt, size);
if (ret <= 0) {
if (ret < 0) {
return AVERROR(EIO);
/* note: we need to modify the packet size here to handle the last
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment