From: Niklas Haas <g...@haasn.dev>

In addition to YUVJ pixfmts.
---
 libavfilter/vf_tiltandshift.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_tiltandshift.c b/libavfilter/vf_tiltandshift.c
index 0b1a03e29e..dc30f4ff1b 100644
--- a/libavfilter/vf_tiltandshift.c
+++ b/libavfilter/vf_tiltandshift.c
@@ -140,7 +140,8 @@ static int config_props(AVFilterLink *outlink)
         if (outlink->format == AV_PIX_FMT_YUVJ420P ||
             outlink->format == AV_PIX_FMT_YUVJ422P ||
             outlink->format == AV_PIX_FMT_YUVJ444P ||
-            outlink->format == AV_PIX_FMT_YUVJ440P)
+            outlink->format == AV_PIX_FMT_YUVJ440P ||
+            outlink->color_range == AVCOL_RANGE_JPEG)
             black_data[0] = black_data[3] = 0;
 
         ret = av_image_alloc(s->black_buffers, s->black_linesizes, 1,
-- 
2.43.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to