[FFmpeg-devel] [PATCH 3/3] lavc/wmv2dec: add #if around AVCodec def

Rodger Combs rodger.combs at gmail.com
Sat Sep 10 02:00:07 EEST 2016


---
 libavcodec/wmv2dec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/wmv2dec.c b/libavcodec/wmv2dec.c
index 20dbee5..477196e 100644
--- a/libavcodec/wmv2dec.c
+++ b/libavcodec/wmv2dec.c
@@ -455,6 +455,7 @@ int ff_wmv2_decode_mb(MpegEncContext *s, int16_t block[6][64])
     return 0;
 }
 
+#if CONFIG_WMV2_DECODER
 static av_cold int wmv2_decode_init(AVCodecContext *avctx)
 {
     Wmv2Context *const w = avctx->priv_data;
@@ -495,3 +496,4 @@ AVCodec ff_wmv2_decoder = {
     .pix_fmts       = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
                                                      AV_PIX_FMT_NONE },
 };
+#endif
-- 
2.10.0



More information about the ffmpeg-devel mailing list