AVFrame frame;
GetBitContext gb;
/* stream data */
- int bit_rate;
int sample_rate;
int num_vectors;
int samples_per_channel;
}
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);
/* 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;