[FFmpeg-trac] #3361(avcodec:new): aac_he mono not recogized (reported as stereo)
FFmpeg
trac at avcodec.org
Fri Jan 31 17:11:52 CET 2014
#3361: aac_he mono not recogized (reported as stereo)
-------------------------------------+-------------------------------------
Reporter: blacktrash | Owner:
Type: defect | Status: new
Priority: important | Component: avcodec
Version: git-master | Resolution:
Keywords: aac | Blocked By:
regression | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by michael):
This fixes it but breaks some reference aac bitstreams we have in fate
{{{
diff --git a/libavcodec/mpeg4audio.c b/libavcodec/mpeg4audio.c
index 68448e6..e9b908d 100644
--- a/libavcodec/mpeg4audio.c
+++ b/libavcodec/mpeg4audio.c
@@ -142,6 +142,9 @@ int avpriv_mpeg4audio_get_config(MPEG4AudioConfig *c,
const uint8_t *buf,
//PS requires SBR
if (!c->sbr)
c->ps = 0;
+ if (c->sbr == 1 && c->ps == -1)
+ c->ps = 0;
+
//Limit implicit PS to the HE-AACv2 Profile
if ((c->ps == -1 && c->object_type != AOT_AAC_LC) || c->channels &
~0x01)
c->ps = 0;
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3361#comment:6>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list