summaryrefslogtreecommitdiff
path: root/libavformat/mpjpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/mpjpeg.c')
-rw-r--r--libavformat/mpjpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mpjpeg.c b/libavformat/mpjpeg.c
index ab8166b16a..434e519d50 100644
--- a/libavformat/mpjpeg.c
+++ b/libavformat/mpjpeg.c
@@ -22,6 +22,7 @@
#define BOUNDARY_TAG "ffserver"
+#ifdef CONFIG_ENCODERS
static int mpjpeg_write_header(AVFormatContext *s)
{
uint8_t buf1[256];
@@ -106,3 +107,4 @@ int jpeg_init(void)
av_register_output_format(&single_jpeg_format);
return 0;
}
+#endif //CONFIG_ENCODERS