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;
                 }
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to