diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-10-21 14:25:18 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-01 11:29:15 -0400 |
commit | 8aa5b8c5c825a86449774f6023400b4775c25027 (patch) | |
tree | d345de0d1b832c113bab76af862f3aa7b400d595 /libavcodec/cook.c | |
parent | 3509eee19c03c23a14c6f226e6cc90072f323025 (diff) | |
download | ffmpeg-8aa5b8c5c825a86449774f6023400b4775c25027.tar.gz |
cook: remove unneeded COOKContext variable, bit_rate
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r-- | libavcodec/cook.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c index 8323bbe68f..7467749a6a 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -126,7 +126,6 @@ typedef struct cook { AVFrame frame; GetBitContext gb; /* stream data */ - int bit_rate; int sample_rate; int num_vectors; int samples_per_channel; @@ -1024,7 +1023,7 @@ static void dump_cook_context(COOKContext *q) } av_log(q->avctx, AV_LOG_ERROR, "COOKContext\n"); PRINT("nb_channels", q->avctx->channels); - PRINT("bit_rate", q->bit_rate); + PRINT("bit_rate", q->avctx->bit_rate); PRINT("sample_rate", q->sample_rate); PRINT("samples_per_channel", q->subpacket[0].samples_per_channel); PRINT("samples_per_frame", q->subpacket[0].samples_per_frame); @@ -1071,7 +1070,6 @@ static av_cold int cook_decode_init(AVCodecContext *avctx) /* Take data from the AVCodecContext (RM container). */ q->sample_rate = avctx->sample_rate; - q->bit_rate = avctx->bit_rate; if (!avctx->channels) { av_log(avctx, AV_LOG_ERROR, "Invalid number of channels\n"); return AVERROR_INVALIDDATA; |