diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-02 01:02:57 +0300 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-02 01:02:57 +0300 |
commit | eee99eb3e8f4481ee5e669e60a0fd6be891af5ac (patch) | |
tree | 9167409a54bad650bf2fc48a7ac69eef713cf189 /libavformat/ffmdec.c | |
parent | cdf5139512544a8f59ce17a4588761d9ade86165 (diff) |
return eof/error if only ffm header has been written, should fix #815
Originally committed as revision 16924 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ffmdec.c')
-rw-r--r-- | libavformat/ffmdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c index 03b7bd82ff..9951d756ea 100644 --- a/libavformat/ffmdec.c +++ b/libavformat/ffmdec.c @@ -359,6 +359,9 @@ static int ffm_read_packet(AVFormatContext *s, AVPacket *pkt) 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)) { |