mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
matroskamux: do not use uinitialized clut on error
If we're missing part of the clut, do not try to use it. It seems very likely the break was meant to break out of the switch rather than from the loop. Coverity 1139878
This commit is contained in:
parent
d917c94037
commit
590e20cbc9
1 changed files with 2 additions and 1 deletions
|
@ -879,7 +879,7 @@ gst_matroska_mux_handle_sink_event (GstCollectPads * pads,
|
|||
if (!gst_structure_get_int (structure, name, &value)) {
|
||||
GST_ERROR_OBJECT (mux, "dvd-spu-clut-change event did not "
|
||||
"contain %s field", name);
|
||||
break;
|
||||
goto break_hard;
|
||||
}
|
||||
clut[i] = value;
|
||||
}
|
||||
|
@ -893,6 +893,7 @@ gst_matroska_mux_handle_sink_event (GstCollectPads * pads,
|
|||
break;
|
||||
}
|
||||
|
||||
break_hard:
|
||||
if (event != NULL)
|
||||
return gst_collect_pads_event_default (pads, data, event, FALSE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue