瀏覽代碼

avfilter/vf_setparams: Fix chroma_location being cleared

Fix chroma_location being cleared by setrange and setfield filters.
This was forgotten in 201f1cba150d44de6fedfeee4e8647170ed5fbca.

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
Tobias Rapp 6 月之前
父節點
當前提交
0f751d3836
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      libavfilter/vf_setparams.c

+ 2 - 0
libavfilter/vf_setparams.c

@@ -236,6 +236,7 @@ static av_cold int init_setrange(AVFilterContext *ctx)
     s->color_primaries = -1;
     s->color_trc       = -1;
     s->colorspace      = -1;
+    s->chroma_location = -1;
     return 0;
 }
 
@@ -272,6 +273,7 @@ static av_cold int init_setfield(AVFilterContext *ctx)
     s->color_primaries = -1;
     s->color_trc       = -1;
     s->colorspace      = -1;
+    s->chroma_location = -1;
     return 0;
 }