mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-27 17:21:05 +00:00
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
This commit is contained in:
parent
77efa159eb
commit
076342fa5c
@ -160,6 +160,7 @@ static int jpeg_read(ByteIOContext *f,
|
|||||||
return jctx.ret_code;
|
return jctx.ret_code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_ENCODERS
|
||||||
static int jpeg_write(ByteIOContext *pb, AVImageInfo *info)
|
static int jpeg_write(ByteIOContext *pb, AVImageInfo *info)
|
||||||
{
|
{
|
||||||
AVCodecContext *c;
|
AVCodecContext *c;
|
||||||
@ -221,6 +222,7 @@ static int jpeg_write(ByteIOContext *pb, AVImageInfo *info)
|
|||||||
av_free(c);
|
av_free(c);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif //CONFIG_ENCODERS
|
||||||
|
|
||||||
AVImageFormat jpeg_image_format = {
|
AVImageFormat jpeg_image_format = {
|
||||||
"jpeg",
|
"jpeg",
|
||||||
@ -228,5 +230,9 @@ AVImageFormat jpeg_image_format = {
|
|||||||
jpeg_probe,
|
jpeg_probe,
|
||||||
jpeg_read,
|
jpeg_read,
|
||||||
(1 << PIX_FMT_YUVJ420P) | (1 << PIX_FMT_YUVJ422P) | (1 << PIX_FMT_YUVJ444P),
|
(1 << PIX_FMT_YUVJ420P) | (1 << PIX_FMT_YUVJ422P) | (1 << PIX_FMT_YUVJ444P),
|
||||||
|
#ifdef CONFIG_ENCODERS
|
||||||
jpeg_write,
|
jpeg_write,
|
||||||
|
#else
|
||||||
|
NULL,
|
||||||
|
#endif //CONFIG_ENCODERS
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user