[FFmpeg-devel] [PATCH v2 08/11] vaapi_encode_mjpeg: Warn if input is not full range
Mark Thompson
sw at jkqxz.net
Mon Jan 28 01:47:04 EET 2019
---
libavcodec/vaapi_encode_mjpeg.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavcodec/vaapi_encode_mjpeg.c b/libavcodec/vaapi_encode_mjpeg.c
index 350800697f..e52f8b9820 100644
--- a/libavcodec/vaapi_encode_mjpeg.c
+++ b/libavcodec/vaapi_encode_mjpeg.c
@@ -460,6 +460,11 @@ static av_cold int vaapi_encode_mjpeg_configure(AVCodecContext *avctx)
if (err < 0)
return err;
+ if (avctx->color_range == AVCOL_RANGE_MPEG) {
+ av_log(avctx, AV_LOG_WARNING, "Input video does not appear "
+ "to use full-range: output colours may be incorrect.\n");
+ }
+
return 0;
}
--
2.19.2
More information about the ffmpeg-devel
mailing list