Browse code

Correctly return EOF for smacker videos

Patch by Alexei Svitkine, alexei dot svitkine at gmail

Originally committed as revision 23749 to svn://svn.ffmpeg.org/ffmpeg/trunk

Alexei Svitkine authored on 2010/06/24 15:55:53
Showing 1 changed files
... ...
@@ -236,7 +236,7 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
236 236
     int pos;
237 237
 
238 238
     if (url_feof(s->pb) || smk->cur_frame >= smk->frames)
239
-        return AVERROR(EIO);
239
+        return AVERROR_EOF;
240 240
 
241 241
     /* if we demuxed all streams, pass another frame */
242 242
     if(smk->curstream < 0) {