skip empty data packets in flv, fix input.flv
Originally committed as revision 18306 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -439,6 +439,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* skip empty data packets */
|
||||||
|
if (!size)
|
||||||
|
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);
|
||||||
|
Reference in New Issue
Block a user