diff --git a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c index ed2f844519..773e24f435 100644 --- a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c +++ b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c @@ -13436,7 +13436,8 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak, guint32 * mvhd_matrix) stream->display_height = h >> 16; offset = 16; - if (len < 86) /* TODO verify */ + /* sample description entry (16) + visual sample description (70) */ + if (len < 86) goto corrupt_file; entry->width = QT_UINT16 (stsd_entry_data + offset + 16);