qtdemux: Ensure that size of the pasp atom is as much as we need
https://bugzilla.gnome.org/show_bug.cgi?id=775455
This commit is contained in:
parent
d46cc8df6c
commit
b79655d3c9
@ -9762,13 +9762,19 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
|||||||
|
|
||||||
if (pasp) {
|
if (pasp) {
|
||||||
const guint8 *pasp_data = (const guint8 *) pasp->data;
|
const guint8 *pasp_data = (const guint8 *) pasp->data;
|
||||||
|
gint len = QT_UINT32 (pasp_data);
|
||||||
|
|
||||||
|
if (len == 16) {
|
||||||
stream->par_w = QT_UINT32 (pasp_data + 8);
|
stream->par_w = QT_UINT32 (pasp_data + 8);
|
||||||
stream->par_h = QT_UINT32 (pasp_data + 12);
|
stream->par_h = QT_UINT32 (pasp_data + 12);
|
||||||
} else {
|
} else {
|
||||||
stream->par_w = 0;
|
stream->par_w = 0;
|
||||||
stream->par_h = 0;
|
stream->par_h = 0;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
stream->par_w = 0;
|
||||||
|
stream->par_h = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (fiel) {
|
if (fiel) {
|
||||||
const guint8 *fiel_data = (const guint8 *) fiel->data;
|
const guint8 *fiel_data = (const guint8 *) fiel->data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user