vc1parse: fix framesize when input is frame-layer

frame-layer header is represented as a sequence of 32 bit unsigned
integer serialized in little-endian byte order, so framesize is on the
first 3 bytes.

SMPTE 421M Annex L.

https://bugzilla.gnome.org/show_bug.cgi?id=738243
This commit is contained in:
Aurélien Zanelli 2014-10-09 18:18:02 +02:00 committed by Tim-Philipp Müller
parent bc835743a4
commit 6df477ff0d

View file

@ -1053,7 +1053,7 @@ gst_vc1_parse_handle_frame (GstBaseParse * parse, GstBaseParseFrame * frame,
/* frame-layer or sequence-layer-frame-layer */
g_assert (size >= 8);
/* Parse frame layer size */
framesize = GST_READ_UINT24_LE (data + 1) + 8;
framesize = GST_READ_UINT24_LE (data) + 8;
}