Commit 1d360f2c authored by jbr's avatar jbr

remove workaround which is no longer needed due to

AVCodecContext.request_channels

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11386 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 92532b1c
...@@ -60,14 +60,7 @@ int ff_aac_ac3_parse(AVCodecParserContext *s1, ...@@ -60,14 +60,7 @@ int ff_aac_ac3_parse(AVCodecParserContext *s1,
s->frame_size = len; s->frame_size = len;
/* update codec info */ /* update codec info */
avctx->sample_rate = sample_rate; avctx->sample_rate = sample_rate;
/* set channels,except if the user explicitly requests 1 or 2 channels, XXX/FIXME this is a bit ugly */
if(avctx->codec_id == CODEC_ID_AC3){
if(avctx->channels!=1 && avctx->channels!=2){
avctx->channels = channels; avctx->channels = channels;
}
} else {
avctx->channels = channels;
}
avctx->bit_rate = bit_rate; avctx->bit_rate = bit_rate;
avctx->frame_size = samples; avctx->frame_size = samples;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment