diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2010-12-23 18:01:19 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2010-12-23 18:01:19 +0000 |
commit | 0e9b064305fec5939631fd905b0d4aa23b983443 (patch) | |
tree | 04fe52687f540f85f933c8a252d77ddf57d18217 /libavcodec/ac3enc.c | |
parent | 3579b405a87756e454de9f1f3165f17c4c499cd6 (diff) | |
download | ffmpeg-0e9b064305fec5939631fd905b0d4aa23b983443.tar.gz |
Remove unneeded local variable, frame_size, in output_frame_end().
Originally committed as revision 26081 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r-- | libavcodec/ac3enc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index 836b97c88a..edd9167ef7 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -1571,11 +1571,10 @@ 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, pad_bytes, crc1, crc2, crc_inv; + int frame_size_58, pad_bytes, crc1, crc2, crc_inv; uint8_t *frame; - frame_size = s->frame_size; - frame_size_58 = ((frame_size >> 2) + (frame_size >> 4)) << 1; + frame_size_58 = ((s->frame_size >> 2) + (s->frame_size >> 4)) << 1; /* pad the remainder of the frame with zeros */ flush_put_bits(&s->pb); @@ -1596,8 +1595,8 @@ static void output_frame_end(AC3EncodeContext *s) /* compute crc2 */ crc2 = av_bswap16(av_crc(av_crc_get_table(AV_CRC_16_ANSI), 0, frame + frame_size_58, - frame_size - frame_size_58 - 2)); - AV_WB16(frame + frame_size - 2, crc2); + s->frame_size - frame_size_58 - 2)); + AV_WB16(frame + s->frame_size - 2, crc2); } |