Mercurial > libavformat.hg
comparison smacker.c @ 6170:224077f3c564 libavformat
Correctly return EOF for smacker videos
Patch by Alexei Svitkine, alexei dot svitkine at gmail
author | mstorsjo |
---|---|
date | Thu, 24 Jun 2010 06:55:53 +0000 |
parents | 536e5527c1e0 |
children | a64b9fa63635 |
comparison
equal
deleted
inserted
replaced
6169:47456957844f | 6170:224077f3c564 |
---|---|
234 int frame_size = 0; | 234 int frame_size = 0; |
235 int palchange = 0; | 235 int palchange = 0; |
236 int pos; | 236 int pos; |
237 | 237 |
238 if (url_feof(s->pb) || smk->cur_frame >= smk->frames) | 238 if (url_feof(s->pb) || smk->cur_frame >= smk->frames) |
239 return AVERROR(EIO); | 239 return AVERROR_EOF; |
240 | 240 |
241 /* if we demuxed all streams, pass another frame */ | 241 /* if we demuxed all streams, pass another frame */ |
242 if(smk->curstream < 0) { | 242 if(smk->curstream < 0) { |
243 url_fseek(s->pb, smk->nextpos, 0); | 243 url_fseek(s->pb, smk->nextpos, 0); |
244 frame_size = smk->frm_size[smk->cur_frame] & (~3); | 244 frame_size = smk->frm_size[smk->cur_frame] & (~3); |