[FFmpeg-cvslog] r16924 - trunk/libavformat/ffmdec.c
bcoudurier
subversion
Sun Feb 1 23:02:57 CET 2009
Author: bcoudurier
Date: Sun Feb 1 23:02:57 2009
New Revision: 16924
Log:
return eof/error if only ffm header has been written, should fix #815
Modified:
trunk/libavformat/ffmdec.c
Modified: trunk/libavformat/ffmdec.c
==============================================================================
--- trunk/libavformat/ffmdec.c Sun Feb 1 22:46:08 2009 (r16923)
+++ trunk/libavformat/ffmdec.c Sun Feb 1 23:02:57 2009 (r16924)
@@ -359,6 +359,9 @@ static int ffm_read_packet(AVFormatConte
FFMContext *ffm = s->priv_data;
int duration;
+ if (url_fsize(s->pb) == FFM_PACKET_SIZE)
+ return -1;
+
switch(ffm->read_state) {
case READ_HEADER:
if (!ffm_is_avail_data(s, FRAME_HEADER_SIZE+4)) {
More information about the ffmpeg-cvslog
mailing list