Commit e580fa9e authored by bcoudurier's avatar bcoudurier

return eof/error if only ffm header has been written, should fix #815

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16924 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fe6c8300
......@@ -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)) {
......
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