Commit 0a3e1569 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Allow colour space autodetection when encoding ljpeg.

This works as expected if the input stream is not yuv4xxp.

Reviewed-by: Paul B Mahol
parent 02c2a54b
......@@ -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"),
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment