mpegpsenc: show first SCR/DTS at debug level
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Jan 2013 19:15:56 +0000 (20:15 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Jan 2013 19:58:59 +0000 (20:58 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mpegenc.c

index ea17e38..23ba8ed 100644 (file)
@@ -1071,6 +1071,7 @@ static int mpeg_mux_write_packet(AVFormatContext *ctx, AVPacket *pkt)
             s->preload *= 2;
         }
         preload = av_rescale(s->preload, 90000, AV_TIME_BASE);
+        av_log(ctx, AV_LOG_DEBUG, "First SCR: %"PRId64" First DTS: %"PRId64"\n", s->last_scr, dts + preload);
     }
 
     if (dts != AV_NOPTS_VALUE) dts += preload;