diff options
author | Niklas Haas <git@haasn.dev> | 2023-12-31 14:18:12 -0800 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2024-02-05 15:20:48 +0100 |
commit | 789109ab2177b4d9b7fee0591d93372a060705b5 (patch) | |
tree | 36b18f0666c2a36ed5d5deff6ab617283aaceddf /libavfilter/vf_tiltandshift.c | |
parent | 88a040386a0ea95306d8d8fdf9400f6214c89e7d (diff) | |
download | ffmpeg-789109ab2177b4d9b7fee0591d93372a060705b5.tar.gz |
avfilter/vf_tiltandshift: check outlink->color_range
In addition to YUVJ pixfmts.
Diffstat (limited to 'libavfilter/vf_tiltandshift.c')
-rw-r--r-- | libavfilter/vf_tiltandshift.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, |