diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-07-04 14:54:13 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-07-25 13:17:24 +0300 |
commit | d9942209b4a451eb39a5075eed843224acbd630c (patch) | |
tree | 7c25961f301e128b9c4dc2789bd1bc75eb09c81a | |
parent | c70ac7f1e6651745b052534b7af672bf2e57048f (diff) | |
download | gstreamer-plugins-good-d9942209b4a451eb39a5075eed843224acbd630c.tar.gz |
qtmux: Reject raw AAC caps without codec_data
The resulting file is not going to be playable without guesswork and raw caps
should always have codec_data.
-rw-r--r-- | gst/isomp4/gstqtmux.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index d9e843b5f..5cabb8f38 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -3509,9 +3509,10 @@ gst_qt_mux_audio_sink_set_caps (GstQTPad * qtpad, GstCaps * caps) "assuming 'raw'"); } - if (!codec_data || gst_buffer_get_size ((GstBuffer *) codec_data) < 2) + if (!codec_data || gst_buffer_get_size ((GstBuffer *) codec_data) < 2) { GST_WARNING_OBJECT (qtmux, "no (valid) codec_data for AAC audio"); - else { + goto refuse_caps; + } else { guint8 profile; gst_buffer_extract ((GstBuffer *) codec_data, 0, &profile, 1); |