Mercurial > libavcodec.hg
comparison imc.c @ 12129:8b28e74de2c0 libavcodec
Add av_ prefix to bswap macros
author | mru |
---|---|
date | Sat, 10 Jul 2010 22:12:30 +0000 |
parents | 7dd2a45249a9 |
children | 93ba40eb28b9 |
comparison
equal
deleted
inserted
replaced
12128:ee740a4e80c5 | 12129:8b28e74de2c0 |
---|---|
658 if (buf_size < IMC_BLOCK_SIZE) { | 658 if (buf_size < IMC_BLOCK_SIZE) { |
659 av_log(avctx, AV_LOG_ERROR, "imc frame too small!\n"); | 659 av_log(avctx, AV_LOG_ERROR, "imc frame too small!\n"); |
660 return -1; | 660 return -1; |
661 } | 661 } |
662 for(i = 0; i < IMC_BLOCK_SIZE / 2; i++) | 662 for(i = 0; i < IMC_BLOCK_SIZE / 2; i++) |
663 buf16[i] = bswap_16(((const uint16_t*)buf)[i]); | 663 buf16[i] = av_bswap16(((const uint16_t*)buf)[i]); |
664 | 664 |
665 init_get_bits(&q->gb, (const uint8_t*)buf16, IMC_BLOCK_SIZE * 8); | 665 init_get_bits(&q->gb, (const uint8_t*)buf16, IMC_BLOCK_SIZE * 8); |
666 | 666 |
667 /* Check the frame header */ | 667 /* Check the frame header */ |
668 imc_hdr = get_bits(&q->gb, 9); | 668 imc_hdr = get_bits(&q->gb, 9); |