]> git.sesse.net Git - ffmpeg/commitdiff
Compile fix when no CONFIG_ENCODERS by (Glenn Maynard <g_sf at zewt dot org>)
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 4 Sep 2003 10:30:52 +0000 (10:30 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 4 Sep 2003 10:30:52 +0000 (10:30 +0000)
Originally committed as revision 2206 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/jpeg.c

index c4cea78de5a45feed553094a6deb57036eee3747..c0b7b3b65e00ec5aa6293c448128eccfceb4cbf5 100644 (file)
@@ -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
 };