]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/xmv.c
Merge commit 'bfe5454cd238b16e7977085f880205229103eccb'
[ffmpeg] / libavformat / xmv.c
index 81fb94c5f7d0b018a8e56f753754d1edd5558407..b447d6cd25caf3f82ae160d7c342582daf55e9d3 100644 (file)
@@ -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)