mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
vc1parser: Relax ASF Binding Byte validation
According to the spec, the least significant bit is reserved and should always we set to 1. Though, some wrong file has been found. Considering how low important this reserved bit is, relax the validation. Related to #660
This commit is contained in:
parent
c810b73472
commit
a5113fe8c8
1 changed files with 3 additions and 3 deletions
|
@ -2423,10 +2423,10 @@ gst_vc1_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
|
|||
|
||||
/* Some sanity checking */
|
||||
if ((minfo.data[0] & 0x01) != 0x01) {
|
||||
GST_ERROR_OBJECT (vc1parse,
|
||||
GST_WARNING_OBJECT (vc1parse,
|
||||
"Invalid binding byte for VC1 advanced profile ASF header");
|
||||
gst_buffer_unmap (codec_data, &minfo);
|
||||
return FALSE;
|
||||
/* stay relax on the validation, it's quite minor to set the reserved
|
||||
* bit to 0 instead of 1, also see bug #793551 */
|
||||
}
|
||||
|
||||
start_code = GST_READ_UINT32_BE (minfo.data + 1);
|
||||
|
|
Loading…
Reference in a new issue