diff mbox

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

Message ID 20160909230007.49352-3-rodger.combs@gmail.com
State Rejected
Headers show

Commit Message

Rodger Combs Sept. 9, 2016, 11 p.m. UTC
---
 libavcodec/wmv2dec.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Michael Niedermayer Sept. 10, 2016, 12:14 a.m. UTC | #1
On Fri, Sep 09, 2016 at 06:00:07PM -0500, Rodger Combs wrote:
> ---
>  libavcodec/wmv2dec.c | 2 ++
>  1 file changed, 2 insertions(+)

why ?

the whole file is already conditionally build on just CONFIG_WMV2_DECODER

or am i missing something ?

[...]
diff mbox

Patch

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