Commit ae58b54b authored by Baptiste Coudurier's avatar Baptiste Coudurier

skip empty flv data packets, fix issue #602

Originally committed as revision 15042 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 3d9aecb0
...@@ -339,6 +339,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -339,6 +339,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
continue; continue;
} }
/* skip empty data packets */
if (!size)
continue;
/* now find stream */ /* now find stream */
for(i=0;i<s->nb_streams;i++) { for(i=0;i<s->nb_streams;i++) {
st = s->streams[i]; st = s->streams[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment