diff options
author | Peter Ross <[email protected]> | 2012-11-21 19:55:01 +1100 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2012-11-21 19:25:20 +0100 |
commit | 0705cbd0026fb17ef0f66846ebd29d7886d266bf (patch) | |
tree | a1b549dcc97967eb8f60d8ce29a7aa808e08966f | |
parent | 60b59d657e4d2c710391b8238533c2f3a51086f7 (diff) |
bink: return AVERROR_EOF upon reaching end of file
Fixes ticket #1935.
Signed-off-by: Peter Ross <[email protected]>
Reviewed-by: Paul B Mahol <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
-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); |