[FFmpeg-devel] [PATCH] bink: return AVERROR_EOF upon reaching end of file

Peter Ross pross at xvid.org
Wed Nov 21 09:55:01 CET 2012


Fixes ticket #1935.

Signed-off-by: Peter Ross <pross at xvid.org>
---
 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);
-- 
1.7.10.4

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121121/f13783d7/attachment.asc>


More information about the ffmpeg-devel mailing list