summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-07-04 14:54:13 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-07-25 13:17:24 +0300
commitd9942209b4a451eb39a5075eed843224acbd630c (patch)
tree7c25961f301e128b9c4dc2789bd1bc75eb09c81a
parentc70ac7f1e6651745b052534b7af672bf2e57048f (diff)
downloadgstreamer-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.c5
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);