Skip to content

Commit 0f751d3

Browse files
committed
avfilter/vf_setparams: Fix chroma_location being cleared
Fix chroma_location being cleared by setrange and setfield filters. This was forgotten in 201f1cb. Signed-off-by: Tobias Rapp <[email protected]>
1 parent 2b63037 commit 0f751d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libavfilter/vf_setparams.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ static av_cold int init_setrange(AVFilterContext *ctx)
236236
s->color_primaries = -1;
237237
s->color_trc = -1;
238238
s->colorspace = -1;
239+
s->chroma_location = -1;
239240
return 0;
240241
}
241242

@@ -272,6 +273,7 @@ static av_cold int init_setfield(AVFilterContext *ctx)
272273
s->color_primaries = -1;
273274
s->color_trc = -1;
274275
s->colorspace = -1;
276+
s->chroma_location = -1;
275277
return 0;
276278
}
277279

0 commit comments

Comments
 (0)