[FFmpeg-cvslog] r18306 - trunk/libavformat/flvdec.c
bcoudurier
subversion
Thu Apr 2 05:52:20 CEST 2009
Author: bcoudurier
Date: Thu Apr 2 05:52:19 2009
New Revision: 18306
Log:
skip empty data packets in flv, fix input.flv
Modified:
trunk/libavformat/flvdec.c
Modified: trunk/libavformat/flvdec.c
==============================================================================
--- trunk/libavformat/flvdec.c Thu Apr 2 00:56:26 2009 (r18305)
+++ trunk/libavformat/flvdec.c Thu Apr 2 05:52:19 2009 (r18306)
@@ -439,6 +439,10 @@ static int flv_read_packet(AVFormatConte
}
}
+ /* skip empty data packets */
+ if (!size)
+ return AVERROR(EAGAIN);
+
ret= av_get_packet(s->pb, pkt, size);
if (ret <= 0) {
return AVERROR(EIO);
More information about the ffmpeg-cvslog
mailing list