diff options
author | Dale Curtis <dalecurtis@chromium.org> | 2024-07-30 23:12:21 +0000 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-09-01 12:42:20 +0200 |
commit | 7753a9d62725d5bd8313e2d249acbe1c8af79ab1 (patch) | |
tree | 8753e5599beb63228a285da62eb6aaa8646e9cec /libavformat/ac4dec.c | |
parent | 0a780d3076fe44fe6d641e84e291b567fca29999 (diff) | |
download | ffmpeg-7753a9d62725d5bd8313e2d249acbe1c8af79ab1.tar.gz |
lavc: Check codec_whitelist early in avcodec_open2()
This ensures that if a codec isn't on codec_whitelist, trying to open it
will not trigger ff_codec_close(), which could invalidate useful
information still present in the context.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/ac4dec.c')
0 files changed, 0 insertions, 0 deletions