diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index a40b392c65..8780be4bae 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -565,6 +565,8 @@ static int filter_frame(AVFilterLink *link, AVFrame *in) sws_setColorspaceDetails(scale->isws[1], inv_table, in_full, table, out_full, brightness, contrast, saturation); + + av_frame_set_color_range(out, out_full ? AVCOL_RANGE_JPEG : AVCOL_RANGE_MPEG); } av_reduce(&out->sample_aspect_ratio.num, &out->sample_aspect_ratio.den,