Jan E <[email protected]> writes: > From: Michael Niedermayer <[email protected]> > > Make it not read random data leading to random false configurations. > > Signed-off-by: Michael Niedermayer <[email protected]> > --- > libavcodec/aacdec.c | 14 +++++++------- > 1 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c > index 0be45b7..8338e25 100644 > --- a/libavcodec/aacdec.c > +++ b/libavcodec/aacdec.c > @@ -458,7 +458,7 @@ static int decode_ga_specific_config(AACContext *ac, > AVCodecContext *avctx, > static int decode_audio_specific_config(AACContext *ac, > AVCodecContext *avctx, > MPEG4AudioConfig *m4ac, > - const uint8_t *data, int data_size) > + const uint8_t *data, int data_size, > int asclen) > {
If this is correct at all, the correct solution is to pass the actual size as the data_size argument, not add another argument and make data_size unused. -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
