[FFmpeg-cvslog] r17733 - trunk/libavcodec/parser.c
michael
subversion
Mon Mar 2 16:13:58 CET 2009
Author: michael
Date: Mon Mar 2 16:13:58 2009
New Revision: 17733
Log:
Consider all packets in the parser, not just ones with timestamps,
this should greatly simplify handling of packet pos.
Modified:
trunk/libavcodec/parser.c
Modified: trunk/libavcodec/parser.c
==============================================================================
--- trunk/libavcodec/parser.c Mon Mar 2 16:12:26 2009 (r17732)
+++ trunk/libavcodec/parser.c Mon Mar 2 16:13:58 2009 (r17733)
@@ -141,14 +141,12 @@ int av_parser_parse(AVCodecParserContext
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){
More information about the ffmpeg-cvslog
mailing list