mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-22 15:23:42 +00:00
avcodec/mjpegenc_common: do not ignore the color_range field
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
7a7ca3cc2f
commit
b26497f824
@ -145,9 +145,10 @@ static void jpeg_put_comments(AVCodecContext *avctx, PutBitContext *p)
|
||||
AV_WB16(ptr, size);
|
||||
}
|
||||
|
||||
if (avctx->pix_fmt == AV_PIX_FMT_YUV420P ||
|
||||
avctx->pix_fmt == AV_PIX_FMT_YUV422P ||
|
||||
avctx->pix_fmt == AV_PIX_FMT_YUV444P) {
|
||||
if (((avctx->pix_fmt == AV_PIX_FMT_YUV420P ||
|
||||
avctx->pix_fmt == AV_PIX_FMT_YUV422P ||
|
||||
avctx->pix_fmt == AV_PIX_FMT_YUV444P) && avctx->color_range != AVCOL_RANGE_JPEG)
|
||||
|| avctx->color_range == AVCOL_RANGE_MPEG) {
|
||||
put_marker(p, COM);
|
||||
flush_put_bits(p);
|
||||
ptr = put_bits_ptr(p);
|
||||
|
Loading…
Reference in New Issue
Block a user