aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-10-21 14:26:29 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-01 11:29:15 -0400
commit926e9d28f1a85898545706a26b27c24672c9c716 (patch)
tree51ff39527946224c76af6f97585457df6fd93d9d /libavcodec
parent8aa5b8c5c825a86449774f6023400b4775c25027 (diff)
downloadffmpeg-926e9d28f1a85898545706a26b27c24672c9c716.tar.gz
cook: remove unneeded COOKContext variable, sample_rate
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/cook.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 7467749a6a..f6d2e664ab 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -126,7 +126,6 @@ typedef struct cook {
AVFrame frame;
GetBitContext gb;
/* stream data */
- int sample_rate;
int num_vectors;
int samples_per_channel;
/* states */
@@ -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->avctx->bit_rate);
- PRINT("sample_rate", q->sample_rate);
+ PRINT("sample_rate", q->avctx->sample_rate);
PRINT("samples_per_channel", q->subpacket[0].samples_per_channel);
PRINT("samples_per_frame", q->subpacket[0].samples_per_frame);
PRINT("subbands", q->subpacket[0].subbands);
@@ -1069,7 +1068,6 @@ static av_cold int cook_decode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_DEBUG, "codecdata_length=%d\n", avctx->extradata_size);
/* Take data from the AVCodecContext (RM container). */
- q->sample_rate = avctx->sample_rate;
if (!avctx->channels) {
av_log(avctx, AV_LOG_ERROR, "Invalid number of channels\n");
return AVERROR_INVALIDDATA;