projects
/
nihav-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e678289
)
hwdec_vaapi: ignore high-profile extradata tail when it is not correct
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sun, 3 Mar 2024 14:00:19 +0000
(15:00 +0100)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sun, 3 Mar 2024 14:00:19 +0000
(15:00 +0100)
hwdec-vaapi/src/lib.rs
patch
|
blob
|
blame
|
history
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()?;
- 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);