summaryrefslogtreecommitdiff
path: root/libavcodec/parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-03-02 15:13:58 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-03-02 15:13:58 +0000
commit7115cbda3045d99a9ee8845183368247a8478373 (patch)
treec1f776c9712cf10a12ef8594b08028520543825e /libavcodec/parser.c
parent2cc304215d53b1e4140508f10c407c29754687e9 (diff)
Consider all packets in the parser, not just ones with timestamps,
this should greatly simplify handling of packet pos. Originally committed as revision 17733 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/parser.c')
-rw-r--r--libavcodec/parser.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c
index 9a9424f0cb..0d1126d22f 100644
--- a/libavcodec/parser.c
+++ b/libavcodec/parser.c
@@ -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){