Skip to content
Snippets Groups Projects
Commit 1bf7f318 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Steve Lhomme
Browse files

test: opengl/filters: fix test failure

The video_format_t structure was not initialized to zero and
video_format_Setup was not setting everything fields as expected,
leading to .lighting and .mastering being non-zero. After the bad
commit, those values were used and changing the values from the test
where zero was expected to non-zero.

First bad commit was 85a04a2e.
parent e1ebbce7
No related branches found
No related tags found
1 merge request!4012test: opengl/filters: fix test failure
Pipeline #369680 passed with stage
in 23 minutes and 41 seconds
......@@ -99,10 +99,11 @@ static void test_opengl_offscreen(
GL_ASSERT_NOERROR(&api.vt);
video_format_t fmt;
video_format_Init(&fmt, VLC_CODEC_RGBA);
video_format_Setup(&fmt, VLC_CODEC_RGBA, 3, 3, 3, 3, 1, 1);
fmt.primaries = COLOR_PRIMARIES_SRGB;
fmt.space = COLOR_SPACE_SRGB;
fmt.transfer = TRANSFER_FUNC_SRGB;
fmt.primaries = COLOR_PRIMARIES_UNDEF;
fmt.space = COLOR_SPACE_UNDEF;
fmt.transfer = TRANSFER_FUNC_UNDEF;
fmt.projection_mode = PROJECTION_MODE_RECTANGULAR;
struct vlc_gl_interop *interop =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment