diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-09-04 10:30:52 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-09-04 10:30:52 +0000 |
commit | 076342fa5cd339afbc9d77fca94dfcc6250bd624 (patch) | |
tree | 1a43adbff6012ceca3942cf92a641776ceaa81a4 /libavformat/jpeg.c | |
parent | 77efa159eb19f0200229796ed37153a939084810 (diff) | |
download | ffmpeg-076342fa5cd339afbc9d77fca94dfcc6250bd624.tar.gz |
Compile fix when no CONFIG_ENCODERS by (Glenn Maynard <g_sf at zewt dot org>)
Originally committed as revision 2206 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/jpeg.c')
-rw-r--r-- | libavformat/jpeg.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/jpeg.c b/libavformat/jpeg.c index c4cea78de5..c0b7b3b65e 100644 --- a/libavformat/jpeg.c +++ b/libavformat/jpeg.c @@ -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 }; |