1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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:
Baptiste Coudurier 2009-04-02 03:52:19 +00:00
parent 60c703ac4b
commit fcb4228c86

View File

@ -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);
if (ret <= 0) {
return AVERROR(EIO);