comparison ac3enc.c @ 9431:932543edc1d2 libavcodec

Rename pbBufPtr() to put_bits_ptr(). The new name is more readable and consistent with the FFmpeg naming style.
author stefano
date Mon, 13 Apr 2009 16:59:38 +0000
parents 0dce4fe6e6f3
children 42803399ba8a
comparison
equal deleted inserted replaced
9430:e806d2145e72 9431:932543edc1d2
1115 frame_size = s->frame_size; /* frame size in words */ 1115 frame_size = s->frame_size; /* frame size in words */
1116 /* align to 8 bits */ 1116 /* align to 8 bits */
1117 flush_put_bits(&s->pb); 1117 flush_put_bits(&s->pb);
1118 /* add zero bytes to reach the frame size */ 1118 /* add zero bytes to reach the frame size */
1119 frame = s->pb.buf; 1119 frame = s->pb.buf;
1120 n = 2 * s->frame_size - (pbBufPtr(&s->pb) - frame) - 2; 1120 n = 2 * s->frame_size - (put_bits_ptr(&s->pb) - frame) - 2;
1121 assert(n >= 0); 1121 assert(n >= 0);
1122 if(n>0) 1122 if(n>0)
1123 memset(pbBufPtr(&s->pb), 0, n); 1123 memset(put_bits_ptr(&s->pb), 0, n);
1124 1124
1125 /* Now we must compute both crcs : this is not so easy for crc1 1125 /* Now we must compute both crcs : this is not so easy for crc1
1126 because it is at the beginning of the data... */ 1126 because it is at the beginning of the data... */
1127 frame_size_58 = (frame_size >> 1) + (frame_size >> 3); 1127 frame_size_58 = (frame_size >> 1) + (frame_size >> 3);
1128 crc1 = bswap_16(av_crc(av_crc_get_table(AV_CRC_16_ANSI), 0, 1128 crc1 = bswap_16(av_crc(av_crc_get_table(AV_CRC_16_ANSI), 0,