[FFmpeg-devel] [PATCH]8 and 24 bit True Audio

Carl Eugen Hoyos cehoyos at ag.or.at
Tue May 3 01:12:56 CEST 2011


Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:

> +            case 3: avctx->bits_per_coded_sample = 24;

> +            case 3: {
> +                int32_t *samples = data;
> +                for (p = s->decode_buffer; p < s->decode_buffer + (framelen *
s->channels); p++)
> +                    *samples++ = AV_RN32(p) << 8;

Does this need a small change so the 8 MSB are repeated as LSB?

Patches applied, Carl Eugen



More information about the ffmpeg-devel mailing list