@@ -685,6 +685,9 @@ const FFCodec ff_amv_encoder = {
.p.pix_fmts = (const enum AVPixelFormat[]) {
AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_NONE
},
+ .p.color_ranges = (const enum AVColorRange[]) {
+ AVCOL_RANGE_JPEG, AVCOL_RANGE_UNSPECIFIED
+ },
.p.priv_class = &amv_class,
.p.capabilities = AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE,
};
@@ -1127,6 +1127,8 @@ const FFCodec ff_roq_encoder = {
.close = roq_encode_end,
.p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVJ444P,
AV_PIX_FMT_NONE },
+ .p.color_ranges = (const enum AVColorRange[]){ AVCOL_RANGE_JPEG,
+ AVCOL_RANGE_UNSPECIFIED },
.p.priv_class = &roq_class,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
};
From: Niklas Haas <git@haasn.dev> Only affects amv and roqvideo. (mjpeg is handled separately by fftools) --- libavcodec/mjpegenc.c | 3 +++ libavcodec/roqvideoenc.c | 2 ++ 2 files changed, 5 insertions(+)