[FFmpeg-cvslog] lavf: enable av_dlog message in av_interleaved_write_frame()

Stefano Sabatini git at videolan.org
Thu Mar 17 02:09:19 CET 2011


ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Tue Mar 15 13:12:15 2011 +0100| [d541c8b468c12892fe7b7e655e1ed45e11e2166d] | committer: Michael Niedermayer

lavf: enable av_dlog message in av_interleaved_write_frame()

Help debugging timestamp issues.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d541c8b468c12892fe7b7e655e1ed45e11e2166d
---

 libavformat/utils.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index b6f8af1..d75ce41 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3092,7 +3092,8 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt){
     if(st->codec->codec_type == AVMEDIA_TYPE_AUDIO && pkt->size==0)
         return 0;
 
-//av_log(NULL, AV_LOG_DEBUG, "av_interleaved_write_frame %d %"PRId64" %"PRId64"\n", pkt->size, pkt->dts, pkt->pts);
+    av_dlog(s, "av_interleaved_write_frame size:%d dts:%"PRId64" pts:%"PRId64"\n",
+            pkt->size, pkt->dts, pkt->pts);
     if(compute_pkt_fields2(s, st, pkt) < 0 && !(s->oformat->flags & AVFMT_NOTIMESTAMPS))
         return -1;
 




More information about the ffmpeg-cvslog mailing list