diff options
Diffstat (limited to 'libavformat/jpeg.c')
-rw-r--r-- | libavformat/jpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/jpeg.c b/libavformat/jpeg.c index 615ab886b9..e51e5b2c0e 100644 --- a/libavformat/jpeg.c +++ b/libavformat/jpeg.c @@ -160,7 +160,7 @@ static int jpeg_read(ByteIOContext *f, return jctx.ret_code; } -#ifdef CONFIG_MUXERS +#if defined(CONFIG_MUXERS) && defined(CONFIG_MJPEG_ENCODER) static int jpeg_write(ByteIOContext *pb, AVImageInfo *info) { AVCodecContext *c; @@ -230,7 +230,7 @@ AVImageFormat jpeg_image_format = { jpeg_probe, jpeg_read, (1 << PIX_FMT_YUVJ420P) | (1 << PIX_FMT_YUVJ422P) | (1 << PIX_FMT_YUVJ444P), -#ifdef CONFIG_MUXERS +#if defined(CONFIG_MUXERS) && defined(CONFIG_MJPEG_ENCODER) jpeg_write, #else NULL, |