summaryrefslogtreecommitdiff
path: root/src/libffmpeg/libavcodec/asv1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libffmpeg/libavcodec/asv1.c')
-rw-r--r--src/libffmpeg/libavcodec/asv1.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libffmpeg/libavcodec/asv1.c b/src/libffmpeg/libavcodec/asv1.c
index 2e6f785fb..bff0fe37a 100644
--- a/src/libffmpeg/libavcodec/asv1.c
+++ b/src/libffmpeg/libavcodec/asv1.c
@@ -481,6 +481,8 @@ for(i=0; i<s->avctx->extradata_size; i++){
return (get_bits_count(&a->gb)+31)/32*4;
}
+#ifdef CONFIG_ENCODERS
+
static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data){
ASV1Context * const a = avctx->priv_data;
AVFrame *pict = data;
@@ -535,6 +537,8 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
return size*4;
}
+#endif
+
static void common_init(AVCodecContext *avctx){
ASV1Context * const a = avctx->priv_data;
@@ -582,6 +586,8 @@ static int decode_init(AVCodecContext *avctx){
return 0;
}
+#ifdef CONFIG_ENCODERS
+
static int encode_init(AVCodecContext *avctx){
ASV1Context * const a = avctx->priv_data;
int i;
@@ -606,6 +612,8 @@ static int encode_init(AVCodecContext *avctx){
return 0;
}
+#endif
+
static int decode_end(AVCodecContext *avctx){
ASV1Context * const a = avctx->priv_data;