diff options
author | Peter Ross <pross@xvid.org> | 2012-11-21 12:55:01 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-21 22:25:20 +0400 |
commit | 0705cbd0026fb17ef0f66846ebd29d7886d266bf (patch) | |
tree | a1b549dcc97967eb8f60d8ce29a7aa808e08966f /libavformat/bink.c | |
parent | 60b59d657e4d2c710391b8238533c2f3a51086f7 (diff) |
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.c | 2 |
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); |