summaryrefslogtreecommitdiff
path: root/libavformat/bink.c
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2012-11-21 19:55:01 +1100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-21 19:25:20 +0100
commit0705cbd0026fb17ef0f66846ebd29d7886d266bf (patch)
treea1b549dcc97967eb8f60d8ce29a7aa808e08966f /libavformat/bink.c
parent60b59d657e4d2c710391b8238533c2f3a51086f7 (diff)
downloadffmpeg-0705cbd0026fb17ef0f66846ebd29d7886d266bf.tar.gz
bink: return AVERROR_EOF upon reaching end of file
Fixes ticket #1935. Signed-off-by: Peter Ross <pross@xvid.org> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/bink.c')
-rw-r--r--libavformat/bink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/bink.c b/libavformat/bink.c
index 74ef27d3b2..c77a8f84e7 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);