diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-04-02 03:52:19 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-04-02 03:52:19 +0000 |
commit | fcb4228c863ec80c9498a6c5e815d79ee9f89a7f (patch) | |
tree | 0e5088f7a4bb05ec5d67a25e8579efea8f1c360d /libavformat/flvdec.c | |
parent | 60c703ac4bb18d69acaa93264d647c186c972486 (diff) | |
download | ffmpeg-fcb4228c863ec80c9498a6c5e815d79ee9f89a7f.tar.gz |
skip empty data packets in flv, fix input.flv
Originally committed as revision 18306 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 89ece0fa88..a279dbe6f8 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -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); |