mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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
This commit is contained in:
parent
cdf5139512
commit
eee99eb3e8
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user