summaryrefslogtreecommitdiff
path: root/codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'codec.c')
-rw-r--r--codec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/codec.c b/codec.c
index c248bd7..d4e169b 100644
--- a/codec.c
+++ b/codec.c
@@ -740,8 +740,10 @@ static void CodecNoopCallback( __attribute__ ((unused))
void CodecInit(void)
{
#ifndef DEBUG
- // display ffmpeg error messages
+ // disable display ffmpeg error messages
av_log_set_callback(CodecNoopCallback);
+#else
+ (void)CodecNoopCallback;
#endif
avcodec_register_all(); // register all formats and codecs
}