Commit cf0cbe44 authored by michael's avatar michael

Consider all packets in the parser, not just ones with timestamps,

this should greatly simplify handling of packet pos.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17733 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a20c0b9a
......@@ -141,14 +141,12 @@ int av_parser_parse(AVCodecParserContext *s,
buf = dummy_buf;
} else {
/* add a new packet descriptor */
if(pts != AV_NOPTS_VALUE || dts != AV_NOPTS_VALUE){
i = (s->cur_frame_start_index + 1) & (AV_PARSER_PTS_NB - 1);
s->cur_frame_start_index = i;
s->cur_frame_offset[i] = s->cur_offset;
s->cur_frame_end[i] = s->cur_offset + buf_size;
s->cur_frame_pts[i] = pts;
s->cur_frame_dts[i] = dts;
}
}
if (s->fetch_timestamp){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment