skip empty flv data packets, fix issue #602

Originally committed as revision 15042 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Baptiste Coudurier 17 years ago
parent 3d9aecb0d7
commit ae58b54b3f
  1. 4
      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];

Loading…
Cancel
Save