Commit 6aa6baa4 authored by Paul B Mahol's avatar Paul B Mahol

xmv: signal EOF

Fixes #1946.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 66b45d8f
...@@ -379,6 +379,9 @@ static int xmv_fetch_new_packet(AVFormatContext *s) ...@@ -379,6 +379,9 @@ static int xmv_fetch_new_packet(AVFormatContext *s)
AVIOContext *pb = s->pb; AVIOContext *pb = s->pb;
int result; int result;
if (xmv->this_packet_offset == xmv->next_packet_offset)
return AVERROR_EOF;
/* Seek to it */ /* Seek to it */
xmv->this_packet_offset = xmv->next_packet_offset; xmv->this_packet_offset = xmv->next_packet_offset;
if (avio_seek(pb, xmv->this_packet_offset, SEEK_SET) != xmv->this_packet_offset) if (avio_seek(pb, xmv->this_packet_offset, SEEK_SET) != xmv->this_packet_offset)
......
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