mirror of https://git.ffmpeg.org/ffmpeg.git
omadec: make sample rate table large enough to prevent out of array reading.
The new values lead to error messages when used Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c963189bc2
commit
a30165c4a8
|
@ -22,7 +22,7 @@
|
||||||
#include "oma.h"
|
#include "oma.h"
|
||||||
#include "libavcodec/avcodec.h"
|
#include "libavcodec/avcodec.h"
|
||||||
|
|
||||||
const uint16_t ff_oma_srate_tab[6] = { 320, 441, 480, 882, 960, 0 };
|
const uint16_t ff_oma_srate_tab[8] = { 320, 441, 480, 882, 960, 0, 0, 0};
|
||||||
|
|
||||||
const AVCodecTag ff_oma_codec_tags[] = {
|
const AVCodecTag ff_oma_codec_tags[] = {
|
||||||
{ CODEC_ID_ATRAC3, OMA_CODECID_ATRAC3 },
|
{ CODEC_ID_ATRAC3, OMA_CODECID_ATRAC3 },
|
||||||
|
|
|
@ -37,7 +37,7 @@ enum {
|
||||||
OMA_CODECID_WMA = 5,
|
OMA_CODECID_WMA = 5,
|
||||||
};
|
};
|
||||||
|
|
||||||
extern const uint16_t ff_oma_srate_tab[6];
|
extern const uint16_t ff_oma_srate_tab[8];
|
||||||
|
|
||||||
extern const AVCodecTag ff_oma_codec_tags[];
|
extern const AVCodecTag ff_oma_codec_tags[];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue