projects
/
nihav-player.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hwdec_vaapi: ignore high-profile extradata tail when it is not correct
[nihav-player.git]
/
hwdec-vaapi
/
src
/
lib.rs
diff --git
a/hwdec-vaapi/src/lib.rs
b/hwdec-vaapi/src/lib.rs
index 7b580d5917a006c044c811f05b725692175fbc58..1ef3e415eeb747e376dfc4b3fd1e71173105097b 100644
(file)
--- 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()?;
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);
// b & 3 -> chroma format
let b = br.read_byte()?;
validate!((b & 0xF8) == 0xF8);