changeset 9230:35370ebfbeeb libavcodec

flacdec: remove unneeded local variable
author jbr
date Sun, 22 Mar 2009 18:59:00 +0000
parents aec6d4ca45a3
children e150ca8d7f91
files flacdec.c
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/flacdec.c	Sun Mar 22 18:56:07 2009 +0000
+++ b/flacdec.c	Sun Mar 22 18:59:00 2009 +0000
@@ -482,7 +482,7 @@
 
 static int decode_frame(FLACContext *s, int alloc_data_size)
 {
-    int bs_code, sr_code, bps_code, i, crc8;
+    int bs_code, sr_code, bps_code, i;
     int ch_mode, bps, blocksize, samplerate;
     GetBitContext *gb = &s->gb;
 
@@ -566,10 +566,9 @@
     }
 
     skip_bits(gb, 8);
-    crc8 = av_crc(av_crc_get_table(AV_CRC_8_ATM), 0,
-                  gb->buffer, get_bits_count(gb)/8);
-    if (crc8) {
-        av_log(s->avctx, AV_LOG_ERROR, "header crc mismatch crc=%2X\n", crc8);
+    if (av_crc(av_crc_get_table(AV_CRC_8_ATM), 0, gb->buffer,
+               get_bits_count(gb)/8)) {
+        av_log(s->avctx, AV_LOG_ERROR, "header crc mismatch\n");
         return -1;
     }