Commit 2479ccac authored by Jan Schmidt's avatar Jan Schmidt

matroska: Initialise a video_context field to satisfy valgrind

Clear the mastering_display_info_present field explicitly
after reallocating the track context into a video context
to avoid uninitialised warnings in valgrind
parent ac55681b
......@@ -70,6 +70,7 @@ gst_matroska_track_init_video_context (GstMatroskaTrackContext ** p_context)
video_context->colorimetry.primaries = GST_VIDEO_COLOR_PRIMARIES_UNKNOWN;
gst_video_mastering_display_info_init
(&video_context->mastering_display_info);
video_context->mastering_display_info_present = FALSE;
gst_video_content_light_level_init (&video_context->content_light_level);
return TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment