[FFmpeg-soc] [soc]: r5256 - concat/libavformat/concatgen.c

gkovacs subversion at mplayerhq.hu
Tue Aug 25 01:43:22 CEST 2009


Author: gkovacs
Date: Tue Aug 25 01:43:21 2009
New Revision: 5256

Log:
only offset pkt->dts when != AV_NOPTS_VALUE

Modified:
   concat/libavformat/concatgen.c

Modified: concat/libavformat/concatgen.c
==============================================================================
--- concat/libavformat/concatgen.c	Tue Aug 25 01:29:06 2009	(r5255)
+++ concat/libavformat/concatgen.c	Tue Aug 25 01:43:21 2009	(r5256)
@@ -61,7 +61,8 @@ int ff_concatgen_read_packet(AVFormatCon
                     int64_t time_offset_localbase = av_rescale_q(ctx->durations[ctx->pe_curidx],
                                                                  AV_TIME_BASE_Q,
                                                                  ic->streams[stream_index]->time_base);
-                    pkt->dts += time_offset_localbase;
+                    if (pkt->dts != AV_NOPTS_VALUE)
+                        pkt->dts += time_offset_localbase;
                     if (pkt->pts != AV_NOPTS_VALUE)
                         pkt->pts += time_offset_localbase;
                 }


More information about the FFmpeg-soc mailing list