Mercurial > libavcodec.hg
changeset 9092:65f47b345904 libavcodec
Consider all packets in the parser, not just ones with timestamps,
this should greatly simplify handling of packet pos.
author | michael |
---|---|
date | Mon, 02 Mar 2009 15:13:58 +0000 |
parents | 4875c1559060 |
children | e9ba8210d495 |
files | parser.c |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/parser.c Mon Mar 02 15:12:26 2009 +0000 +++ b/parser.c Mon Mar 02 15:13:58 2009 +0000 @@ -141,14 +141,12 @@ 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){