Mercurial > libavcodec.hg
comparison flacenc.c @ 12128:ee740a4e80c5 libavcodec
bswap: change ME to NE in macro names
Other parts of FFmpeg use NE (native endian) rather than ME (machine).
This makes it consistent.
author | mru |
---|---|
date | Sat, 10 Jul 2010 22:09:01 +0000 |
parents | fdafbcef52f5 |
children | 8b28e74de2c0 |
comparison
equal
deleted
inserted
replaced
12127:9ba7d2a5b20a | 12128:ee740a4e80c5 |
---|---|
1162 static void update_md5_sum(FlacEncodeContext *s, int16_t *samples) | 1162 static void update_md5_sum(FlacEncodeContext *s, int16_t *samples) |
1163 { | 1163 { |
1164 #if HAVE_BIGENDIAN | 1164 #if HAVE_BIGENDIAN |
1165 int i; | 1165 int i; |
1166 for(i = 0; i < s->frame.blocksize*s->channels; i++) { | 1166 for(i = 0; i < s->frame.blocksize*s->channels; i++) { |
1167 int16_t smp = le2me_16(samples[i]); | 1167 int16_t smp = le2ne_16(samples[i]); |
1168 av_md5_update(s->md5ctx, (uint8_t *)&smp, 2); | 1168 av_md5_update(s->md5ctx, (uint8_t *)&smp, 2); |
1169 } | 1169 } |
1170 #else | 1170 #else |
1171 av_md5_update(s->md5ctx, (uint8_t *)samples, s->frame.blocksize*s->channels*2); | 1171 av_md5_update(s->md5ctx, (uint8_t *)samples, s->frame.blocksize*s->channels*2); |
1172 #endif | 1172 #endif |