diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-11-22 20:37:24 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-11-22 20:37:24 +0000 |
commit | 6aa6baa4f2d46a3cea6c9844bc24a8784c755484 (patch) | |
tree | d528bc9064b49859bb6ff622797986a2b5c8aab8 /libavformat/xmv.c | |
parent | 66b45d8f7a1bfba1065286361ab571cb9cfd87c6 (diff) | |
download | ffmpeg-6aa6baa4f2d46a3cea6c9844bc24a8784c755484.tar.gz |
xmv: signal EOF
Fixes #1946.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/xmv.c')
-rw-r--r-- | libavformat/xmv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/xmv.c b/libavformat/xmv.c index 81fb94c5f7..b447d6cd25 100644 --- a/libavformat/xmv.c +++ b/libavformat/xmv.c @@ -379,6 +379,9 @@ static int xmv_fetch_new_packet(AVFormatContext *s) AVIOContext *pb = s->pb; int result; + if (xmv->this_packet_offset == xmv->next_packet_offset) + return AVERROR_EOF; + /* Seek to it */ xmv->this_packet_offset = xmv->next_packet_offset; if (avio_seek(pb, xmv->this_packet_offset, SEEK_SET) != xmv->this_packet_offset) |