]> git.tuebingen.mpg.de Git - paraslash.git/commit
aacdec: Prefer NeAACDecInit() over NeAACDecInit2().
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 31 Dec 2016 01:39:16 +0000 (02:39 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 25 Mar 2017 10:54:36 +0000 (11:54 +0100)
commit929a67dd8f243686fb5928d175b00937446ffda5
tree2bd030282f22d6bd6520d61cef38d3d06c3a8bf2
parent198d80de3be06f39f316f516fba655392d7b885a
aacdec: Prefer NeAACDecInit() over NeAACDecInit2().

The aac decoder tries to parse the length of the decoder configuration
from the esds atom and passes this information to NeAACDecInit2(). If
we can not figure out the length, we fall back to NeAACDecInit(),
which does not receive the decoder length as a parameter. This is
unnecessary because NeAACDecInit2() is only necessary for decoding
mp4 files, while both para_afh and para_server feed demultiplexed
aac frames to the decoder.

Calling NeAACDecInit() unconditionally allows to get rid of the
code which detects and parses the esds atom.
aacdec_filter.c
error.h