diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-07-01 02:05:43 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-07-01 02:33:45 +0200 |
commit | 79a98294da6cd85f8c86b34764c5e0c43b09eea3 (patch) | |
tree | 06beefe55ab66bdbb0a9af09d158b3a109cfc4c1 /libavcodec/sbr.h | |
parent | 4ebb43f19c416e1601730ca9ae57749b1385c563 (diff) | |
download | ffmpeg-79a98294da6cd85f8c86b34764c5e0c43b09eea3.tar.gz |
avcodec/aacsbr: check that the element type matches before applying SBR
Fixes out of array access
Fixes: signal_sigsegv_3670fc0_2818_cov_2307326154_moon.mux
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/sbr.h')
-rw-r--r-- | libavcodec/sbr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/sbr.h b/libavcodec/sbr.h index e28fccda09..ff00acba0d 100644 --- a/libavcodec/sbr.h +++ b/libavcodec/sbr.h @@ -137,6 +137,7 @@ typedef struct AACSBRContext { struct SpectralBandReplication { int sample_rate; int start; + int id_aac; int reset; SpectrumParameters spectrum_params; int bs_amp_res_header; |