diff options
author | wm4 <wm4@nowhere> | 2019-12-15 23:40:11 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-12-15 23:40:11 +0100 |
commit | 4ae43a1c40b2e6f96ce2c62bc5f16d55f91436f5 (patch) | |
tree | 467a44aca8dc9a5b865365539f7ef2f7088986c7 /stream/cookies.h | |
parent | 2c6d42e70488e00ae0290b2edc27a6eb592bada7 (diff) | |
download | mpv-4ae43a1c40b2e6f96ce2c62bc5f16d55f91436f5.tar.bz2 mpv-4ae43a1c40b2e6f96ce2c62bc5f16d55f91436f5.tar.xz |
vd_lavc: fix broken assert()
This assert() sometimes triggered (and still triggers) with lavc API
bugs. It tries to check that at least 1 plane is set to a non-NULL
value. Obviously, a valid frame returned by successful decoding should
never have it.
The problem is that some hwdecs use integer surface IDs cast to a
pointer. Recently, it happened that newer Intel drivers started using
surface ID 0 under certain circumstances (for unknown reasons), which
triggers this assert.
Just get rid of it.
For the sake of #7185, add an assert() specifically for nvdec. That
failure needs to be further analyzed, is probably a FFmpeg bug, and
without this assert() would just crash somewhere further down the video
chain.
Fixes: #7261
Diffstat (limited to 'stream/cookies.h')
0 files changed, 0 insertions, 0 deletions