Mercurial > libavcodec.hg
changeset 11586:2dc5036a8d18 libavcodec
Fix ext_object_type.
In the case of explicit non-backwards compible PS, the extension object
type should be set to SBR. See 14496-3:2009 (fourth edition).
author | alexc |
---|---|
date | Thu, 08 Apr 2010 06:04:31 +0000 |
parents | aea1b01ff81b |
children | d80d54dd267d |
files | mpeg4audio.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpeg4audio.c Tue Apr 06 09:52:41 2010 +0000 +++ b/mpeg4audio.c Thu Apr 08 06:04:31 2010 +0000 @@ -91,7 +91,7 @@ if (c->object_type == AOT_SBR || (c->object_type == AOT_PS && // check for W6132 Annex YYYY draft MP3onMP4 !(show_bits(&gb, 3) & 0x03 && !(show_bits(&gb, 9) & 0x3F)))) { - c->ext_object_type = c->object_type; + c->ext_object_type = AOT_SBR; c->sbr = 1; c->ext_sample_rate = get_sample_rate(&gb, &c->ext_sampling_index); c->object_type = get_object_type(&gb);