[FFmpeg-cvslog] mpegpsenc: show first SCR/DTS at debug level
Michael Niedermayer
git at videolan.org
Fri Jan 4 21:04:40 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jan 4 20:15:56 2013 +0100| [cf369d4449857b094e4ec91e29eaeaa7e7334bad] | committer: Michael Niedermayer
mpegpsenc: show first SCR/DTS at debug level
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cf369d4449857b094e4ec91e29eaeaa7e7334bad
---
libavformat/mpegenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c
index ea17e38..23ba8ed 100644
--- a/libavformat/mpegenc.c
+++ b/libavformat/mpegenc.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list