[FFmpeg-cvslog] r26081 - trunk/libavcodec/ac3enc.c

jbr subversion
Thu Dec 23 19:01:19 CET 2010


Author: jbr
Date: Thu Dec 23 19:01:19 2010
New Revision: 26081

Log:
Remove unneeded local variable, frame_size, in output_frame_end().

Modified:
   trunk/libavcodec/ac3enc.c

Modified: trunk/libavcodec/ac3enc.c
==============================================================================
--- trunk/libavcodec/ac3enc.c	Thu Dec 23 18:29:48 2010	(r26080)
+++ trunk/libavcodec/ac3enc.c	Thu Dec 23 19:01:19 2010	(r26081)
@@ -1571,11 +1571,10 @@ static unsigned int pow_poly(unsigned in
  */
 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(AC3EncodeCo
     /* 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);
 }
 
 



More information about the ffmpeg-cvslog mailing list