[FFmpeg-soc] [soc]: r5106 - spdif/spdif.c
Diego Biurrun
diego at biurrun.de
Sat Aug 15 12:33:03 CEST 2009
On Sat, Aug 15, 2009 at 12:22:36PM +0200, bwolowiec wrote:
>
> --- spdif/spdif.c Sat Aug 15 01:50:34 2009 (r5105)
> +++ spdif/spdif.c Sat Aug 15 12:22:36 2009 (r5106)
> @@ -63,6 +61,25 @@ typedef struct IEC958Context {
>
> +static void bswap_buf16(uint16_t *dst, const uint16_t *src, int w){
> + int i;
> +
> + for(i=0; i+8<=w; i+=8){
> + dst[i+0]= bswap_16(src[i+0]);
> + dst[i+1]= bswap_16(src[i+1]);
> + dst[i+2]= bswap_16(src[i+2]);
> + dst[i+3]= bswap_16(src[i+3]);
> + dst[i+4]= bswap_16(src[i+4]);
> + dst[i+5]= bswap_16(src[i+5]);
> + dst[i+6]= bswap_16(src[i+6]);
> + dst[i+7]= bswap_16(src[i+7]);
> + }
> + for(;i<w; i++){
> + dst[i+0]= bswap_16(src[i+0]);
> + }
> +}
Use K&R style please.
Diego
More information about the FFmpeg-soc
mailing list