Mercurial > libavformat.hg
comparison mpegtsenc.c @ 6248:e630da0f5861 libavformat
Add av_ prefix to bswap macros
author | mru |
---|---|
date | Sat, 10 Jul 2010 22:12:30 +0000 |
parents | 17483b8b01e7 |
children | 50b1c5de4b71 |
comparison
equal
deleted
inserted
replaced
6247:a64b9fa63635 | 6248:e630da0f5861 |
---|---|
72 unsigned char packet[TS_PACKET_SIZE]; | 72 unsigned char packet[TS_PACKET_SIZE]; |
73 const unsigned char *buf_ptr; | 73 const unsigned char *buf_ptr; |
74 unsigned char *q; | 74 unsigned char *q; |
75 int first, b, len1, left; | 75 int first, b, len1, left; |
76 | 76 |
77 crc = bswap_32(av_crc(av_crc_get_table(AV_CRC_32_IEEE), -1, buf, len - 4)); | 77 crc = av_bswap32(av_crc(av_crc_get_table(AV_CRC_32_IEEE), -1, buf, len - 4)); |
78 buf[len - 4] = (crc >> 24) & 0xff; | 78 buf[len - 4] = (crc >> 24) & 0xff; |
79 buf[len - 3] = (crc >> 16) & 0xff; | 79 buf[len - 3] = (crc >> 16) & 0xff; |
80 buf[len - 2] = (crc >> 8) & 0xff; | 80 buf[len - 2] = (crc >> 8) & 0xff; |
81 buf[len - 1] = (crc) & 0xff; | 81 buf[len - 1] = (crc) & 0xff; |
82 | 82 |