diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-06-04 20:01:39 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-06-04 20:01:39 +0200 |
commit | 0a3e15690fba3ee086b745a50c88cb05f1b5339f (patch) | |
tree | 3eabf0565e5fd3f941b8190f9343531547c4add8 /libavcodec | |
parent | 02c2a54bf6c994b2a7f76158f91aad5eecbb941e (diff) | |
download | ffmpeg-0a3e15690fba3ee086b745a50c88cb05f1b5339f.tar.gz |
Allow colour space autodetection when encoding ljpeg.
This works as expected if the input stream is not yuv4xxp.
Reviewed-by: Paul B Mahol
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ljpegenc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/ljpegenc.c b/libavcodec/ljpegenc.c index 733e5e9a0b..07bab3d506 100644 --- a/libavcodec/ljpegenc.c +++ b/libavcodec/ljpegenc.c @@ -218,5 +218,10 @@ AVCodec ff_ljpeg_encoder = { //FIXME avoid MPV_* lossless JPEG should not need t .init = ff_MPV_encode_init, .encode2 = encode_picture_lossless, .close = ff_MPV_encode_end, + .pix_fmts = (const enum PixelFormat[]){ + PIX_FMT_BGR24, PIX_FMT_BGRA, PIX_FMT_BGR0, + PIX_FMT_YUVJ420P, PIX_FMT_YUVJ444P, PIX_FMT_YUVJ422P, + PIX_FMT_YUV420P, PIX_FMT_YUV444P, PIX_FMT_YUV422P, + PIX_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("Lossless JPEG"), }; |