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

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_setparams.c+2−0
@@ -236,6 +236,7 @@ static av_cold int init_setrange(AVFilterContext *ctx) · 235 unmodified lines
236 s->color_primaries = -1;236 s->color_primaries = -1;
237 s->color_trc = -1;237 s->color_trc = -1;
238 s->colorspace = -1;238 s->colorspace = -1;
239 s->chroma_location = -1;
239 return 0;240 return 0;
240}241}
241 242
@@ -272,6 +273,7 @@ static av_cold int init_setfield(AVFilterContext *ctx) · 30 unmodified lines
272 s->color_primaries = -1;273 s->color_primaries = -1;
273 s->color_trc = -1;274 s->color_trc = -1;
274 s->colorspace = -1;275 s->colorspace = -1;
276 s->chroma_location = -1;
275 return 0;277 return 0;
276}278}
277 279

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