Commit ea5199d2 authored by michaelni's avatar michaelni

Compile fix when no CONFIG_ENCODERS by (Glenn Maynard <g_sf at zewt dot org>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2206 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fd021143
......@@ -160,6 +160,7 @@ static int jpeg_read(ByteIOContext *f,
return jctx.ret_code;
}
#ifdef CONFIG_ENCODERS
static int jpeg_write(ByteIOContext *pb, AVImageInfo *info)
{
AVCodecContext *c;
......@@ -221,6 +222,7 @@ static int jpeg_write(ByteIOContext *pb, AVImageInfo *info)
av_free(c);
return ret;
}
#endif //CONFIG_ENCODERS
AVImageFormat jpeg_image_format = {
"jpeg",
......@@ -228,5 +230,9 @@ AVImageFormat jpeg_image_format = {
jpeg_probe,
jpeg_read,
(1 << PIX_FMT_YUVJ420P) | (1 << PIX_FMT_YUVJ422P) | (1 << PIX_FMT_YUVJ444P),
#ifdef CONFIG_ENCODERS
jpeg_write,
#else
NULL,
#endif //CONFIG_ENCODERS
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment