Mercurial > libavformat.hg
diff flvdec.c @ 6210:da46dcc05d4a libavformat
Use ext sample from mpeg4audio config if set with AAC SBR
author | bcoudurier |
---|---|
date | Thu, 01 Jul 2010 22:31:31 +0000 |
parents | f74198942337 |
children |
line wrap: on
line diff
--- a/flvdec.c Thu Jul 01 20:15:49 2010 +0000 +++ b/flvdec.c Thu Jul 01 22:31:31 2010 +0000 @@ -414,7 +414,10 @@ ff_mpeg4audio_get_config(&cfg, st->codec->extradata, st->codec->extradata_size); st->codec->channels = cfg.channels; - st->codec->sample_rate = cfg.sample_rate; + if (cfg.ext_sample_rate) + st->codec->sample_rate = cfg.ext_sample_rate; + else + st->codec->sample_rate = cfg.sample_rate; dprintf(s, "mp4a config channels %d sample rate %d\n", st->codec->channels, st->codec->sample_rate); }