X-Git-Url: https://git.nihav.org/?p=nihav-player.git;a=blobdiff_plain;f=hwdec-vaapi%2Fsrc%2Flib.rs;fp=hwdec-vaapi%2Fsrc%2Flib.rs;h=1ef3e415eeb747e376dfc4b3fd1e71173105097b;hp=7b580d5917a006c044c811f05b725692175fbc58;hb=bf56f1530cd35b68bfca88c10e3170dabf5f6f02;hpb=e678289fd98b3f07e27189bc0cbe940cb493370b diff --git a/hwdec-vaapi/src/lib.rs b/hwdec-vaapi/src/lib.rs index 7b580d5..1ef3e41 100644 --- a/hwdec-vaapi/src/lib.rs +++ b/hwdec-vaapi/src/lib.rs @@ -484,7 +484,10 @@ impl VaapiH264Decoder { match profile { 100 | 110 | 122 | 144 => { let b = br.read_byte()?; - validate!((b & 0xFC) == 0xFC); + // some encoders put something different here + if (b & 0xFC) != 0xFC { + return Ok(()); + } // b & 3 -> chroma format let b = br.read_byte()?; validate!((b & 0xF8) == 0xF8);