diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2010-12-14 14:52:12 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2010-12-14 14:52:12 +0000 |
commit | eed00252c9d5fc3624bbeb23b287cfc238781bca (patch) | |
tree | 591d4786d3e7a015a0d4a090a29e9280fa353e85 /libavcodec/ac3enc.c | |
parent | 1971ab6ed64b6626903d830628d142b6e2e063a7 (diff) | |
download | ffmpeg-eed00252c9d5fc3624bbeb23b287cfc238781bca.tar.gz |
cosmetics: rename variable 'n' to 'pad_bytes'
Originally committed as revision 25976 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r-- | libavcodec/ac3enc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index 71b62c5f48..1c02ce15f4 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -1040,7 +1040,7 @@ static unsigned int pow_poly(unsigned int a, unsigned int n, unsigned int poly) */ static void output_frame_end(AC3EncodeContext *s) { - int frame_size, frame_size_58, n, crc1, crc2, crc_inv; + int frame_size, frame_size_58, pad_bytes, crc1, crc2, crc_inv; uint8_t *frame; frame_size = s->frame_size; /* frame size in words */ @@ -1048,10 +1048,10 @@ static void output_frame_end(AC3EncodeContext *s) flush_put_bits(&s->pb); /* add zero bytes to reach the frame size */ frame = s->pb.buf; - n = 2 * s->frame_size - (put_bits_ptr(&s->pb) - frame) - 2; - assert(n >= 0); - if (n > 0) - memset(put_bits_ptr(&s->pb), 0, n); + pad_bytes = 2 * s->frame_size - (put_bits_ptr(&s->pb) - frame) - 2; + assert(pad_bytes >= 0); + if (pad_bytes > 0) + memset(put_bits_ptr(&s->pb), 0, pad_bytes); /* Now we must compute both crcs : this is not so easy for crc1 because it is at the beginning of the data... */ |