Fix index_entries pos:

It was being set wrong for files with data_offset > 0

Patch by Michael Chinen, mchinen gmail

Originally committed as revision 25239 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Chinen
2010-09-27 22:17:58 +00:00
committed by Carl Eugen Hoyos
parent c6625ad541
commit 59cb40b921
3 changed files with 8 additions and 4 deletions

View File

@ -1159,10 +1159,6 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
}else if(st->need_parsing == AVSTREAM_PARSE_FULL_ONCE){
st->parser->flags |= PARSER_FLAG_ONCE;
}
if(st->parser && (s->iformat->flags & AVFMT_GENERIC_INDEX)){
st->parser->next_frame_offset=
st->parser->cur_offset= st->cur_pkt.pos;
}
}
}
}