diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-08-29 22:10:34 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-08-29 22:10:34 +0000 |
commit | ae58b54b3f81963f7f7a952281a5983626adad07 (patch) | |
tree | cdf2831608b5bbd6610892a1201a0d87ad0ca2c7 /libavformat/flvdec.c | |
parent | 3d9aecb0d7a763e0b0b04eef4cef2508401b7a34 (diff) | |
download | ffmpeg-ae58b54b3f81963f7f7a952281a5983626adad07.tar.gz |
skip empty flv data packets, fix issue #602
Originally committed as revision 15042 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 eb24792e3d..ff6f98106d 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -339,6 +339,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) continue; } + /* skip empty data packets */ + if (!size) + continue; + /* now find stream */ for(i=0;i<s->nb_streams;i++) { st = s->streams[i]; |