[FFmpeg-devel,2/2] avfilter/vf_zscale: update input/output chroma location too

Submitted by Paul B Mahol on May 31, 2019, 3:51 p.m.

Details

Message ID 20190531155141.29628-2-onemda@gmail.com
State New
Headers show

Commit Message

Paul B Mahol May 31, 2019, 3:51 p.m.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavfilter/vf_zscale.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c
index 275951e1a3..094f225d24 100644
--- a/libavfilter/vf_zscale.c
+++ b/libavfilter/vf_zscale.c
@@ -746,10 +746,12 @@  static int filter_frame(AVFilterLink *link, AVFrame *in)
         s->in_trc         = in->color_trc;
         s->in_primaries   = in->color_primaries;
         s->in_range       = in->color_range;
+        s->in_chromal     = in->chroma_location;
         s->out_colorspace = out->colorspace;
         s->out_trc        = out->color_trc;
         s->out_primaries  = out->color_primaries;
         s->out_range      = out->color_range;
+        s->out_chromal    = out->chroma_location;
     }
 
     if (s->colorspace != -1)