mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
gst/matroska/matroska-mux.c: Fix NULL pointer dereference of an unset codec_id in the recently added Dirac paths
Original commit message from CVS: * gst/matroska/matroska-mux.c: Fix NULL pointer dereference of an unset codec_id in the recently added Dirac paths
This commit is contained in:
parent
968bee1f95
commit
fe7d1d7ae0
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2008-11-20 Jan Schmidt <jan.schmidt@sun.com>
|
||||||
|
|
||||||
|
* gst/matroska/matroska-mux.c:
|
||||||
|
Fix NULL pointer dereference of an unset codec_id in the recently
|
||||||
|
added Dirac paths
|
||||||
|
|
||||||
2008-11-20 Jan Schmidt <jan.schmidt@sun.com>
|
2008-11-20 Jan Schmidt <jan.schmidt@sun.com>
|
||||||
|
|
||||||
* tests/check/Makefile.am:
|
* tests/check/Makefile.am:
|
||||||
|
|
|
@ -2099,7 +2099,8 @@ gst_matroska_mux_write_data (GstMatroskaMux * mux, GstMatroskaPad * collect_pad)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* for dirac we have to queue up everything up to a picture unit */
|
/* for dirac we have to queue up everything up to a picture unit */
|
||||||
if (strcmp (collect_pad->track->codec_id,
|
if (collect_pad->track->codec_id != NULL &&
|
||||||
|
strcmp (collect_pad->track->codec_id,
|
||||||
GST_MATROSKA_CODEC_ID_VIDEO_DIRAC) == 0) {
|
GST_MATROSKA_CODEC_ID_VIDEO_DIRAC) == 0) {
|
||||||
buf = gst_matroska_mux_handle_dirac_packet (mux, collect_pad, buf);
|
buf = gst_matroska_mux_handle_dirac_packet (mux, collect_pad, buf);
|
||||||
if (!buf)
|
if (!buf)
|
||||||
|
|
Loading…
Reference in a new issue