Commit 3af983b1 authored by michael's avatar michael

Do not fail on zero packets.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18328 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8023c2ef
...@@ -444,7 +444,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -444,7 +444,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
return AVERROR(EAGAIN); return AVERROR(EAGAIN);
ret= av_get_packet(s->pb, pkt, size); ret= av_get_packet(s->pb, pkt, size);
if (ret <= 0) { if (ret < 0) {
return AVERROR(EIO); return AVERROR(EIO);
} }
/* note: we need to modify the packet size here to handle the last /* 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