diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-11-24 14:24:13 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-11-24 14:24:13 +0000 |
commit | 7f321fca23597e23a577b84e71a20128def9a7d7 (patch) | |
tree | 056e2d83b3f3d7946b3d62a622a06f745da45023 /libavformat | |
parent | 9378a90addb15f67cf52fc32694385a0e243f6a9 (diff) | |
download | ffmpeg-7f321fca23597e23a577b84e71a20128def9a7d7.tar.gz |
mmf: signal EOF
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mmf.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavformat/mmf.c b/libavformat/mmf.c index e77137f290..b985baa7d2 100644 --- a/libavformat/mmf.c +++ b/libavformat/mmf.c @@ -268,16 +268,13 @@ static int mmf_read_packet(AVFormatContext *s, MMFContext *mmf = s->priv_data; int ret, size; - if (url_feof(s->pb)) - return AVERROR(EIO); + if (url_feof(s->pb) || !mmf->data_size) + return AVERROR_EOF; size = MAX_SIZE; if(size > mmf->data_size) size = mmf->data_size; - if(!size) - return AVERROR(EIO); - ret = av_get_packet(s->pb, pkt, size); if (ret < 0) return ret; |