[FFmpeg-cvslog] mpeg4video: use ff_dlog instead of av_log under debug&FF_DEBUG_PTS.

Ronald S. Bultje git at videolan.org
Tue Aug 18 21:40:37 CEST 2015


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Mon Aug 17 20:44:53 2015 -0400| [9468207e1cbacdf5e67fbab51e141796065eb146] | committer: Ronald S. Bultje

mpeg4video: use ff_dlog instead of av_log under debug&FF_DEBUG_PTS.

This fixes compilation with FF_API_UNUSED_MEMBERS=0.

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

 libavcodec/mpeg4videodec.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index 55ce5d8..3cb0c38 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -22,6 +22,7 @@
 
 #define UNCHECKED_BITSTREAM_READER 1
 
+#include "libavutil/internal.h"
 #include "libavutil/opt.h"
 #include "error_resilience.h"
 #include "idctdsp.h"
@@ -2320,9 +2321,7 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb)
         pts = ROUNDED_DIV(s->time, s->avctx->framerate.den);
     else
         pts = AV_NOPTS_VALUE;
-    if (s->avctx->debug&FF_DEBUG_PTS)
-        av_log(s->avctx, AV_LOG_DEBUG, "MPEG4 PTS: %"PRId64"\n",
-               pts);
+    ff_dlog(s->avctx, "MPEG4 PTS: %"PRId64"\n", pts);
 
     check_marker(gb, "before vop_coded");
 



More information about the ffmpeg-cvslog mailing list