GNOME Bugzilla – Bug 797327
matroskademux: trackcontext uses uninitialized memory
Last modified: 2018-10-24 08:55:57 UTC
Created attachment 374013 [details] [review] patch After interlace_mode was added my pipelines sometimes failed to find a matching pad due to the caps not matching since the matroska pad randomly got interlace_mode set which the sinkpad didn't accept.
Review of attachment 374013 [details] [review]: ::: gst/matroska/matroska-ids.c @@ +59,3 @@ video_context->fourcc = 0; video_context->default_fps = 0.0; + video_context->interlace_mode = GST_MATROSKA_INTERLACE_MODE_UNKNOWN; Makes sense. Did you check if all fields are initialized here now, and also for the audio/subtitle track types?
Created attachment 374022 [details] [review] patch-all-fields Here are all uninitialized values in video, audio and subtitle contexts. Whether these default values are correct though I'm not sure.
Created attachment 374023 [details] [review] patch-all-fields-fixed typo in previous patch, fixed
commit abfc7da3453155eccbca79d41603e51ce9199888 (HEAD -> master) Author: Johan Bjäreholt <johanbj@axis.com> Date: Tue Oct 23 13:04:34 2018 +0200 matroska-ids: Fix uninitialized memory in contexts https://bugzilla.gnome.org/show_bug.cgi?id=797327