summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec_float.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-03 16:04:13 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-01-09 04:06:32 +0100
commit10663312de979404d2417a120a3c85a68cf70dd5 (patch)
tree90ca8dfb6a37c7c47baa4cdd1950b2c2e3b8a5ec /libavcodec/ac3dec_float.c
parent277281ac8eb7337a8d6dbddc9ffcfffabe44b40c (diff)
avcodec/ac3dec: Check operations that can fail
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/ac3dec_float.c')
-rw-r--r--libavcodec/ac3dec_float.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ac3dec_float.c b/libavcodec/ac3dec_float.c
index 57a626a181..5010ee0ca5 100644
--- a/libavcodec/ac3dec_float.c
+++ b/libavcodec/ac3dec_float.c
@@ -67,6 +67,7 @@ AVCodec ff_ac3_decoder = {
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP,
AV_SAMPLE_FMT_NONE },
.priv_class = &ac3_decoder_class,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
};
#if CONFIG_EAC3_DECODER
@@ -91,5 +92,6 @@ AVCodec ff_eac3_decoder = {
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP,
AV_SAMPLE_FMT_NONE },
.priv_class = &eac3_decoder_class,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
};
#endif