forked from FFmpeg/FFmpeg
sample_rate and channels in aac audio patch by (Luca Abeni <lucabe72 at email dot it>)
Originally committed as revision 3198 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f4bd8cf0b1
commit
940aed50ed
1 changed files with 3 additions and 0 deletions
|
@ -116,6 +116,9 @@ static int faac_init_mp4(AVCodecContext *avctx)
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
av_log(avctx, AV_LOG_ERROR, "faacDecInit2 failed r:%d sr:%ld ch:%ld s:%d\n",
|
av_log(avctx, AV_LOG_ERROR, "faacDecInit2 failed r:%d sr:%ld ch:%ld s:%d\n",
|
||||||
r, samplerate, (long)channels, avctx->extradata_size);
|
r, samplerate, (long)channels, avctx->extradata_size);
|
||||||
|
avctx->sample_rate = samplerate;
|
||||||
|
avctx->channels = channels;
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue