summaryrefslogtreecommitdiff
path: root/libavcodec/flacdec.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-03-22 18:59:00 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-03-22 18:59:00 +0000
commit5c3e0340d983534bf9669363e375d4f861e1e9c6 (patch)
tree472b223f09cb82c661fb214c4a3d1052771dc6ef /libavcodec/flacdec.c
parent3b4d96fa68a2aefc44e68541eecfcb3634353569 (diff)
flacdec: remove unneeded local variable
Originally committed as revision 18148 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flacdec.c')
-rw-r--r--libavcodec/flacdec.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index cbe4f32f9d..88f62f761a 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -482,7 +482,7 @@ static inline int decode_subframe(FLACContext *s, int channel)
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 @@ static int decode_frame(FLACContext *s, int alloc_data_size)
}
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;
}