[FFmpeg-devel] [PATCH] Fix non-rounding up to next 16-bit aligned bug in IFF decoder

Måns Rullgård mans
Wed Apr 28 22:53:43 CEST 2010


Sebastian Vater <cdgs.basty at googlemail.com> writes:

> -    for(; dst < end; dst++) {
> -        *dst |= get_bits1(&gb) << plane;
> +    for(; dst < end; dst += 4) {
> +        const uint32_t v  = AV_RN32A(dst) | lut[get_bits(&gb, 4)];
> +        AV_WN32A(dst, v);
>      }

What happened to a non-mod4 tail?  Is that not allowed?

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list