diff options
author | Shreesh Adiga <16567adigashreesh@gmail.com> | 2021-07-13 19:36:52 +0530 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-07-13 15:16:59 +0000 |
commit | be81470f5464abcb31095f6c86380b354a16ba2d (patch) | |
tree | 441d0a9eec5ba87dbe1c7ec62b5741c71ba2ecf2 /demux/demux.c | |
parent | d828652f248f152c5794a7d3a41e5732a5327e36 (diff) | |
download | mpv-be81470f5464abcb31095f6c86380b354a16ba2d.tar.bz2 mpv-be81470f5464abcb31095f6c86380b354a16ba2d.tar.xz |
audio: check ao driver init failure to avoid use after free
reinit_audio_filters_and_output function will free mpctx->ao_chain
when there is a failure during audio initialization. So modify it
to return -1 in case of init failure. The return value is checked
to avoid use after free. Reported by Address Sanitizer when manually
specifying --ao which triggers "Failed to initialize audio driver" error.
Diffstat (limited to 'demux/demux.c')
0 files changed, 0 insertions, 0 deletions