[FFmpeg-cvslog] bink: return AVERROR_EOF upon reaching end of file
Peter Ross
git at videolan.org
Wed Nov 21 20:08:08 CET 2012
ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Wed Nov 21 19:55:01 2012 +1100| [0705cbd0026fb17ef0f66846ebd29d7886d266bf] | committer: Michael Niedermayer
bink: return AVERROR_EOF upon reaching end of file
Fixes ticket #1935.
Signed-off-by: Peter Ross <pross at xvid.org>
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0705cbd0026fb17ef0f66846ebd29d7886d266bf
---
libavformat/bink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/bink.c b/libavformat/bink.c
index 74ef27d..c77a8f8 100644
--- a/libavformat/bink.c
+++ b/libavformat/bink.c
@@ -201,7 +201,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
AVStream *st = s->streams[0]; // stream 0 is video stream with index
if (bink->video_pts >= st->duration)
- return AVERROR(EIO);
+ return AVERROR_EOF;
index_entry = av_index_search_timestamp(st, bink->video_pts,
AVSEEK_FLAG_ANY);
More information about the ffmpeg-cvslog
mailing list