History

avfilter/vf_setparams: Fix chroma_location being cleared

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

Tobias Rapp committed 1 year ago

Commit 0f751d31 parent 2b630371 file · +2 −0Browse files

Unified · Split

libavfilter/vf_setparams.c+2−0
@@ -236,6 +236,7 @@ static av_cold int init_setrange(AVFilterContext *ctx) · 235 unmodified lines
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) · 30 unmodified lines
272273 s->color_primaries = -1;
273274 s->color_trc = -1;
274275 s->colorspace = -1;
276+ s->chroma_location = -1;
275277 return 0;
276278 }
277279

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t