mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avfilter/vf_tiltandshift: check outlink->color_range
In addition to YUVJ pixfmts.
This commit is contained in:
parent
88a040386a
commit
789109ab21
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user