diff options
author | Jan Ekström <jeebjp@gmail.com> | 2021-10-28 01:10:14 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2021-10-28 23:13:51 +0300 |
commit | 27c0dd55609daf440a7744e96ac20c119bbeb80f (patch) | |
tree | c73cde216b085a70730e680609a5e77477bf7745 /libavfilter/vf_zscale.c | |
parent | cd1d09e81b53d47380b494acd3432fd4abb3c17b (diff) | |
download | ffmpeg-27c0dd55609daf440a7744e96ac20c119bbeb80f.tar.gz |
avfilter/vf_zscale: fix mapping of zimg_chroma_location_e to AVChromaLocation
The AVChromaLocation values are one higher than zimg's, not one
lower as the undefined value is set to zero (as opposed to zimg's
-1).
Diffstat (limited to 'libavfilter/vf_zscale.c')
-rw-r--r-- | libavfilter/vf_zscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c index 439c0c8548..1288c5efc1 100644 --- a/libavfilter/vf_zscale.c +++ b/libavfilter/vf_zscale.c @@ -569,7 +569,7 @@ static void update_output_color_information(ZScaleContext *s, AVFrame *frame) frame->color_trc = (int)s->dst_format.transfer_characteristics; if (s->chromal != -1) - frame->chroma_location = (int)s->dst_format.chroma_location - 1; + frame->chroma_location = (int)s->dst_format.chroma_location + 1; } static int filter_frame(AVFilterLink *link, AVFrame *in) |