diff --git a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c index c938f4c2f5..f1076db465 100644 --- a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c +++ b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c @@ -16841,32 +16841,15 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak, guint32 * mvhd_matrix) case FOURCC_mp4a: { /* mp4a atom withtout ESDS; Attempt to build codec data from atom */ - gint len = QT_UINT32 (stsd_entry_data); - guint16 sound_version = 0; /* FIXME: Can this be determined somehow? There doesn't seem to be - * anything in mp4a atom that specifis compression */ + * anything in mp4a atom that specifies compression */ gint profile = 2; guint16 channels = entry->n_channels; - guint32 time_scale = (guint32) entry->rate; + guint32 sample_rate = (guint32) entry->rate; gint sample_rate_index = -1; - if (len >= 34) { - sound_version = QT_UINT16 (stsd_entry_data + 16); - - if (sound_version == 1) { - channels = QT_UINT16 (stsd_entry_data + 24); - time_scale = QT_UINT32 (stsd_entry_data + 30); - } else { - GST_FIXME_OBJECT (qtdemux, "Unhandled mp4a atom version %d", - sound_version); - } - } else { - GST_DEBUG_OBJECT (qtdemux, "Too small stsd entry data len %d", - len); - } - sample_rate_index = - gst_codec_utils_aac_get_index_from_sample_rate (time_scale); + gst_codec_utils_aac_get_index_from_sample_rate (sample_rate); if (sample_rate_index >= 0 && channels > 0) { guint8 codec_data[2]; GstBuffer *buf;