Commit 0705cbd0 authored by Peter Ross's avatar Peter Ross Committed by Michael Niedermayer

bink: return AVERROR_EOF upon reaching end of file

Fixes ticket #1935.
Signed-off-by: 's avatarPeter Ross <pross@xvid.org>
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 60b59d65
...@@ -201,7 +201,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -201,7 +201,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
AVStream *st = s->streams[0]; // stream 0 is video stream with index AVStream *st = s->streams[0]; // stream 0 is video stream with index
if (bink->video_pts >= st->duration) if (bink->video_pts >= st->duration)
return AVERROR(EIO); return AVERROR_EOF;
index_entry = av_index_search_timestamp(st, bink->video_pts, index_entry = av_index_search_timestamp(st, bink->video_pts,
AVSEEK_FLAG_ANY); AVSEEK_FLAG_ANY);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment