Mercurial > libavcodec.hg
comparison alsdec.c @ 12129:8b28e74de2c0 libavcodec
Add av_ prefix to bswap macros
author | mru |
---|---|
date | Sat, 10 Jul 2010 22:12:30 +0000 |
parents | 3798d134f330 |
children | 3fbaf3a70b29 |
comparison
equal
deleted
inserted
replaced
12128:ee740a4e80c5 | 12129:8b28e74de2c0 |
---|---|
1462 sample < ctx->cur_frame_length * avctx->channels; | 1462 sample < ctx->cur_frame_length * avctx->channels; |
1463 sample++) { | 1463 sample++) { |
1464 int32_t v; | 1464 int32_t v; |
1465 | 1465 |
1466 if (swap) | 1466 if (swap) |
1467 v = bswap_32(src[sample]); | 1467 v = av_bswap32(src[sample]); |
1468 else | 1468 else |
1469 v = src[sample]; | 1469 v = src[sample]; |
1470 if (!HAVE_BIGENDIAN) | 1470 if (!HAVE_BIGENDIAN) |
1471 v >>= 8; | 1471 v >>= 8; |
1472 | 1472 |
1480 int16_t *src = (int16_t*) data; | 1480 int16_t *src = (int16_t*) data; |
1481 int16_t *dest = (int16_t*) ctx->crc_buffer; | 1481 int16_t *dest = (int16_t*) ctx->crc_buffer; |
1482 for (sample = 0; | 1482 for (sample = 0; |
1483 sample < ctx->cur_frame_length * avctx->channels; | 1483 sample < ctx->cur_frame_length * avctx->channels; |
1484 sample++) | 1484 sample++) |
1485 *dest++ = bswap_16(src[sample]); | 1485 *dest++ = av_bswap16(src[sample]); |
1486 } else { | 1486 } else { |
1487 ctx->dsp.bswap_buf((uint32_t*)ctx->crc_buffer, data, | 1487 ctx->dsp.bswap_buf((uint32_t*)ctx->crc_buffer, data, |
1488 ctx->cur_frame_length * avctx->channels); | 1488 ctx->cur_frame_length * avctx->channels); |
1489 } | 1489 } |
1490 crc_source = ctx->crc_buffer; | 1490 crc_source = ctx->crc_buffer; |