[FFmpeg-devel] [PATCH] wavdec: RIFX file format support

compn tempn at mi.rr.com
Mon Dec 15 12:49:16 CET 2014


On Mon, 15 Dec 2014 11:10:08 +0100
Thomas Volkert <silvo at gmx.net> wrote:

> +    if (big_endian) {
> +        id                 = ntohs(id);
> +        codec->channels    = ntohs(codec->channels);
> +        codec->sample_rate = ntohl(codec->sample_rate);
> +        codec->bit_rate    = ntohl(codec->bit_rate / 8) * 8;
> +        codec->block_align = ntohs(codec->block_align);
> +    }

there are other ways of converting BE to LE than ntoh*
(sorry , i dont know which functions in ffmpeg do it, i am no
programmer)

-compn


More information about the ffmpeg-devel mailing list