[FFmpeg-cvslog] xmv: signal EOF
Paul B Mahol
git at videolan.org
Thu Nov 22 21:43:21 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Nov 22 20:37:24 2012 +0000| [6aa6baa4f2d46a3cea6c9844bc24a8784c755484] | committer: Paul B Mahol
xmv: signal EOF
Fixes #1946.
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6aa6baa4f2d46a3cea6c9844bc24a8784c755484
---
libavformat/xmv.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/xmv.c b/libavformat/xmv.c
index 81fb94c..b447d6c 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)
More information about the ffmpeg-cvslog
mailing list