diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-07-01 22:31:31 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-07-01 22:31:31 +0000 |
commit | 7d6096e42e2ee0794cc8eaeb27eba164ba0782a2 (patch) | |
tree | 2c2158718d2a5cd97a1ea2e1152f9299562d105c /libavformat/mov.c | |
parent | 8434fc26ebc677320a42d86fcdcd1775d55f7c5a (diff) | |
download | ffmpeg-7d6096e42e2ee0794cc8eaeb27eba164ba0782a2.tar.gz |
Use ext sample from mpeg4audio config if set with AAC SBR
Originally committed as revision 23947 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 99cbbfbe35..4921e55c82 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -535,8 +535,10 @@ int ff_mov_read_esds(AVFormatContext *fc, ByteIOContext *pb, MOVAtom atom) st->codec->channels = cfg.channels; if (cfg.object_type == 29 && cfg.sampling_index < 3) // old mp3on4 st->codec->sample_rate = ff_mpa_freq_tab[cfg.sampling_index]; + else if (cfg.ext_sample_rate) + st->codec->sample_rate = cfg.ext_sample_rate; else - st->codec->sample_rate = cfg.sample_rate; // ext sample rate ? + st->codec->sample_rate = cfg.sample_rate; dprintf(fc, "mp4a config channels %d obj %d ext obj %d " "sample rate %d ext sample rate %d\n", st->codec->channels, cfg.object_type, cfg.ext_object_type, |