Browse Source

skip empty data packets in flv, fix input.flv

Originally committed as revision 18306 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Baptiste Coudurier 16 years ago
parent
commit
fcb4228c86
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavformat/flvdec.c

+ 4
- 0
libavformat/flvdec.c 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);


Loading…
Cancel
Save