summaryrefslogtreecommitdiff
path: root/libavformat/avienc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/avienc.c')
-rw-r--r--libavformat/avienc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 670dc2101c..b9bbedec95 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -24,6 +24,7 @@
* - fill all fields if non streamed (nb_frames for example)
*/
+#ifdef CONFIG_ENCODERS
typedef struct AVIIentry {
unsigned int flags, pos, len;
} AVIIentry;
@@ -69,6 +70,7 @@ void end_tag(ByteIOContext *pb, offset_t start)
put_le32(pb, (uint32_t)(pos - start));
url_fseek(pb, pos, SEEK_SET);
}
+#endif //CONFIG_ENCODERS
/* Note: when encoding, the first matching tag is used, so order is
important if multiple tags possible for a given codec. */
@@ -206,6 +208,7 @@ enum CodecID codec_get_wav_id(unsigned int tag)
return codec_get_id(codec_wav_tags, tag);
}
+#ifdef CONFIG_ENCODERS
/* BITMAPINFOHEADER header */
void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const CodecTag *tags, int for_asf)
{
@@ -720,3 +723,4 @@ int avienc_init(void)
av_register_output_format(&avi_oformat);
return 0;
}
+#endif //CONFIG_ENCODERS