]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ac3enc.c
decode: be more explicit about storing the last packet properties
[ffmpeg] / libavcodec / ac3enc.c
index da141e1acb3ffb81700e93dc57ad462f73d583e2..48bc2e79de19356090ee585b9208ca66e6805b6c 100644 (file)
@@ -1676,9 +1676,9 @@ void ff_ac3_output_frame(AC3EncodeContext *s, unsigned char *frame)
 }
 
 
+#ifdef DEBUG
 static void dprint_options(AC3EncodeContext *s)
 {
-#ifdef DEBUG
     AVCodecContext *avctx = s->avctx;
     AC3EncOptions *opt = &s->options;
     char strbuf[32];
@@ -1787,8 +1787,10 @@ static void dprint_options(AC3EncodeContext *s)
             ff_dlog(avctx, "extended bitstream info 2: {not written}\n");
         }
     }
-#endif
 }
+#else
+#define dprint_options(x) do {} while(0)
+#endif
 
 
 #define FLT_OPTION_THRESHOLD 0.01