mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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.
This commit is contained in:
parent
e3923df800
commit
5b24841f66
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue