diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-11 17:11:01 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-11 18:13:36 +0300 |
commit | 12a5e0409d32105b7ae3346cf2cdf83b40ab33b2 (patch) | |
tree | d7df354dd35cd3bbfb431679c6d058526c0220e2 /libavcodec/ac3tab.c | |
parent | 67c4405fac3f227126a6233daab629f322abe4d2 (diff) |
avcodec/ac3_tab: Zero-terminate ff_ac3_sample_rate_tab
This is required to use it as an AVCodec.supported_samplerates array.
Adding the sentinel has been forgotten in 4679a474.
Without it e.g. the FATE-test ffmpeg-filter_complex_audio fails with ASAN.
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/ac3tab.c')
-rw-r--r-- | libavcodec/ac3tab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3tab.c b/libavcodec/ac3tab.c index 96ef8ebaeb..ef2a41bc59 100644 --- a/libavcodec/ac3tab.c +++ b/libavcodec/ac3tab.c @@ -126,7 +126,7 @@ const uint8_t ff_ac3_dec_channel_map[8][2][6] = { }; /* possible frequencies */ -const int ff_ac3_sample_rate_tab[3] = { 48000, 44100, 32000 }; +const int ff_ac3_sample_rate_tab[] = { 48000, 44100, 32000, 0 }; /* possible bitrates */ const uint16_t ff_ac3_bitrate_tab[19] = { |