[FFmpeg-devel] [RFC] avcodec: Add native DCA decoder based on libdcadec.
Andreas Cadhalpun
andreas.cadhalpun at googlemail.com
Tue Jan 5 20:45:22 CET 2016
On 03.01.2016 18:49, foo86 wrote:
> +// 5.3.1 - Bit stream header
> +static int parse_frame_header(DCA2CoreDecoder *s)
> +{
[...]
> + // Source PCM resolution
> + s->source_pcm_res = ff_dca_bits_per_sample[pcmr_index = get_bits(&s->gb, 3)];
This can cause an out-of-bounds read if get_bits returns 7, because ff_dca_bits_per_sample
only has 7 elements.
Best regards,
Andreas
More information about the ffmpeg-devel
mailing list