diff --git a/libavcodec/raw.c b/libavcodec/raw.c index 2687798034..7e681dccac 100644 --- a/libavcodec/raw.c +++ b/libavcodec/raw.c @@ -212,6 +212,7 @@ AVCodec rawvideo_encoder = { }; #endif // CONFIG_RAWVIDEO_ENCODER +#ifdef CONFIG_RAWVIDEO_DECODER AVCodec rawvideo_decoder = { "rawvideo", CODEC_TYPE_VIDEO, @@ -222,3 +223,4 @@ AVCodec rawvideo_decoder = { raw_close_decoder, raw_decode, }; +#endif // CONFIG_RAWVIDEO_DECODER