[soc]: r4496 - seek_api/utils.c
Author: spyfeng Date: Sun Jun 21 20:09:54 2009 New Revision: 4496 Log: set correct pos for st->parser->pos Modified: seek_api/utils.c Modified: seek_api/utils.c ============================================================================== --- seek_api/utils.c Sun Jun 21 20:00:34 2009 (r4495) +++ seek_api/utils.c Sun Jun 21 20:09:54 2009 (r4496) @@ -937,6 +937,8 @@ static int av_read_frame_internal(AVForm pkt->stream_index = st->index; pkt->pts = st->parser->pts; pkt->dts = st->parser->dts; + if (st->parser->pos == -1) + st->parser->pos = st->parser->last_pos + len; pkt->pos = st->parser->pos; pkt->destruct = NULL; compute_pkt_fields(s, st, st->parser, pkt);
participants (1)
-
spyfeng