Mercurial > libavcodec.hg
comparison h264.c @ 1786:b7340afa261a libavcodec
get_bit_count -> put_bits_count
author | alex |
---|---|
date | Fri, 06 Feb 2004 15:27:31 +0000 |
parents | bdf3927bf8c5 |
children | 5ac49e7a1b8f |
comparison
equal
deleted
inserted
replaced
1785:14d918d0ef42 | 1786:b7340afa261a |
---|---|
1068 * write 1,10,100,1000,... for alignment, yes its exactly inverse to mpeg4 | 1068 * write 1,10,100,1000,... for alignment, yes its exactly inverse to mpeg4 |
1069 */ | 1069 */ |
1070 static void encode_rbsp_trailing(PutBitContext *pb){ | 1070 static void encode_rbsp_trailing(PutBitContext *pb){ |
1071 int length; | 1071 int length; |
1072 put_bits(pb, 1, 1); | 1072 put_bits(pb, 1, 1); |
1073 length= (-get_bit_count(pb))&7; | 1073 length= (-put_bits_count(pb))&7; |
1074 if(length) put_bits(pb, length, 0); | 1074 if(length) put_bits(pb, length, 0); |
1075 } | 1075 } |
1076 | 1076 |
1077 /** | 1077 /** |
1078 * identifies the exact end of the bitstream | 1078 * identifies the exact end of the bitstream |