[FFmpeg-cvslog] r13470 - trunk/libavformat/utils.c
michael
subversion
Tue May 27 20:43:26 CEST 2008
Author: michael
Date: Tue May 27 20:43:25 2008
New Revision: 13470
Log:
Do not use the pts/dts calculation code which needs a parser, when no parser
is available.
Modified:
trunk/libavformat/utils.c
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c (original)
+++ trunk/libavformat/utils.c Tue May 27 20:43:25 2008
@@ -703,7 +703,7 @@ static void compute_pkt_fields(AVFormatC
// av_log(NULL, AV_LOG_DEBUG, "IN delayed:%d pts:%"PRId64", dts:%"PRId64" cur_dts:%"PRId64" st:%d pc:%p\n", presentation_delayed, pkt->pts, pkt->dts, st->cur_dts, pkt->stream_index, pc);
/* interpolate PTS and DTS if they are not present */
- if(delay <=1){
+ if(delay==0 || (delay==1 && pc)){
if (presentation_delayed) {
/* DTS = decompression timestamp */
/* PTS = presentation timestamp */
More information about the ffmpeg-cvslog
mailing list