Originally committed as revision 2206 to svn://svn.ffmpeg.org/ffmpeg/trunk
return jctx.ret_code;
}
+#ifdef CONFIG_ENCODERS
static int jpeg_write(ByteIOContext *pb, AVImageInfo *info)
{
AVCodecContext *c;
av_free(c);
return ret;
}
+#endif //CONFIG_ENCODERS
AVImageFormat jpeg_image_format = {
"jpeg",
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
};