aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/lcl.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-09-27 19:54:07 +0000
committerMåns Rullgård <mans@mansr.com>2006-09-27 19:54:07 +0000
commit62bb489b13c1f7967946bf538492dce0af1150fe (patch)
treef33797575ec10e2efe0b5b94b4251498fedd62e1 /libavcodec/lcl.c
parent191e8ca75279073699e0c0f25128b2b2088d1cbb (diff)
downloadffmpeg-62bb489b13c1f7967946bf538492dce0af1150fe.tar.gz
add some #ifdef CONFIG_ENCODERS/DECODERS
Originally committed as revision 6356 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lcl.c')
-rw-r--r--libavcodec/lcl.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/libavcodec/lcl.c b/libavcodec/lcl.c
index 0bc118af20..569c3f71e5 100644
--- a/libavcodec/lcl.c
+++ b/libavcodec/lcl.c
@@ -190,7 +190,7 @@ static unsigned int mszh_decomp(unsigned char * srcptr, int srclen, unsigned cha
-
+#ifdef CONFIG_DECODERS
/*
*
* Decode a frame
@@ -544,9 +544,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8
/* always report that the buffer was completely consumed */
return buf_size;
}
+#endif
-
-
+#ifdef CONFIG_ENCODERS
/*
*
* Encode a frame
@@ -605,9 +605,9 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
return c->zstream.total_out;
#endif
}
+#endif /* CONFIG_ENCODERS */
-
-
+#ifdef CONFIG_DECODERS
/*
*
* Init lcl decoder
@@ -769,9 +769,9 @@ static int decode_init(AVCodecContext *avctx)
return 0;
}
+#endif /* CONFIG_DECODERS */
-
-
+#ifdef CONFIG_ENCODERS
/*
*
* Init lcl encoder
@@ -839,11 +839,11 @@ static int encode_init(AVCodecContext *avctx)
return 0;
#endif
}
+#endif /* CONFIG_ENCODERS */
-
-
+#ifdef CONFIG_DECODERS
/*
*
* Uninit lcl decoder
@@ -861,9 +861,9 @@ static int decode_end(AVCodecContext *avctx)
return 0;
}
+#endif
-
-
+#ifdef CONFIG_ENCODERS
/*
*
* Uninit lcl encoder
@@ -881,7 +881,9 @@ static int encode_end(AVCodecContext *avctx)
return 0;
}
+#endif
+#ifdef CONFIG_MSZH_DECODER
AVCodec mszh_decoder = {
"mszh",
CODEC_TYPE_VIDEO,
@@ -893,8 +895,9 @@ AVCodec mszh_decoder = {
decode_frame,
CODEC_CAP_DR1,
};
+#endif
-
+#ifdef CONFIG_ZLIB_DECODER
AVCodec zlib_decoder = {
"zlib",
CODEC_TYPE_VIDEO,
@@ -906,6 +909,7 @@ AVCodec zlib_decoder = {
decode_frame,
CODEC_CAP_DR1,
};
+#endif
#ifdef CONFIG_ENCODERS