---
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
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel