summaryrefslogtreecommitdiff
path: root/libavcodec/cljr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/cljr.c')
-rw-r--r--libavcodec/cljr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/cljr.c b/libavcodec/cljr.c
index c80af01f0d..bb8ae2c7b5 100644
--- a/libavcodec/cljr.c
+++ b/libavcodec/cljr.c
@@ -30,6 +30,7 @@
/* Disable the encoder. */
#undef CONFIG_CLJR_ENCODER
+#define CONFIG_CLJR_ENCODER 0
typedef struct CLJRContext{
AVCodecContext *avctx;
@@ -84,7 +85,7 @@ static int decode_frame(AVCodecContext *avctx,
return buf_size;
}
-#ifdef CONFIG_CLJR_ENCODER
+#if CONFIG_CLJR_ENCODER
static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data){
CLJRContext * const a = avctx->priv_data;
AVFrame *pict = data;
@@ -124,7 +125,7 @@ static av_cold int decode_init(AVCodecContext *avctx){
return 0;
}
-#ifdef CONFIG_CLJR_ENCODER
+#if CONFIG_CLJR_ENCODER
static av_cold int encode_init(AVCodecContext *avctx){
common_init(avctx);
@@ -146,7 +147,7 @@ AVCodec cljr_decoder = {
.long_name = NULL_IF_CONFIG_SMALL("Cirrus Logic AccuPak"),
};
-#ifdef CONFIG_CLJR_ENCODER
+#if CONFIG_CLJR_ENCODER
AVCodec cljr_encoder = {
"cljr",
CODEC_TYPE_VIDEO,