changeset 215:99f4032097e0 libavformat

Compile fix when no CONFIG_ENCODERS by (Glenn Maynard <g_sf at zewt dot org>)
author michaelni
date Thu, 04 Sep 2003 10:30:52 +0000
parents 6e732ea5ea09
children a981594ba3b3
files jpeg.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jpeg.c	Thu Sep 04 10:26:49 2003 +0000
+++ b/jpeg.c	Thu Sep 04 10:30:52 2003 +0000
@@ -160,6 +160,7 @@
     return jctx.ret_code;
 }
 
+#ifdef CONFIG_ENCODERS
 static int jpeg_write(ByteIOContext *pb, AVImageInfo *info)
 {
     AVCodecContext *c;
@@ -221,6 +222,7 @@
     av_free(c);
     return ret;
 }
+#endif //CONFIG_ENCODERS
 
 AVImageFormat jpeg_image_format = {
     "jpeg",
@@ -228,5 +230,9 @@
     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
 };