mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
atrac3: remove unused ATRAC3Context field, sample_rate
This commit is contained in:
parent
89a6c32bc1
commit
808686fc1e
@ -90,7 +90,6 @@ typedef struct ATRAC3Context {
|
|||||||
//@{
|
//@{
|
||||||
/** stream data */
|
/** stream data */
|
||||||
int coding_mode;
|
int coding_mode;
|
||||||
int sample_rate;
|
|
||||||
|
|
||||||
ChannelUnit *units;
|
ChannelUnit *units;
|
||||||
//@}
|
//@}
|
||||||
@ -869,9 +868,6 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx)
|
|||||||
const uint8_t *edata_ptr = avctx->extradata;
|
const uint8_t *edata_ptr = avctx->extradata;
|
||||||
ATRAC3Context *q = avctx->priv_data;
|
ATRAC3Context *q = avctx->priv_data;
|
||||||
|
|
||||||
/* Take data from the AVCodecContext (RM container). */
|
|
||||||
q->sample_rate = avctx->sample_rate;
|
|
||||||
|
|
||||||
if (avctx->channels <= 0 || avctx->channels > 2) {
|
if (avctx->channels <= 0 || avctx->channels > 2) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Channel configuration error!\n");
|
av_log(avctx, AV_LOG_ERROR, "Channel configuration error!\n");
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user