avfilter/vf_setparams: Fix chroma_location being cleared
Fix chroma_location being cleared by setrange and setfield filters.
This was forgotten in 201f1cba15.
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
This commit is contained in:
parent
2b6303762f
commit
0f751d3836
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue