lavf: enable av_dlog message in av_interleaved_write_frame()
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 15 Mar 2011 12:12:15 +0000 (13:12 +0100)
committerReinhard Tartler <siretart@tauware.de>
Thu, 17 Mar 2011 06:29:57 +0000 (07:29 +0100)
Help debugging timestamp issues.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d541c8b468c12892fe7b7e655e1ed45e11e2166d)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavformat/utils.c

index d5372d7..38ff809 100644 (file)
@@ -3093,7 +3093,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;