OSDN Git Service

aacenc: Fix the conditions under which 3GPP pre-echo control is run.
authorNathan Caldwell <saintdev@gmail.com>
Wed, 27 Oct 2010 05:54:41 +0000 (05:54 +0000)
committerAnton Khirnov <wyskas@gmail.com>
Wed, 27 Oct 2010 05:54:41 +0000 (05:54 +0000)
commiteafadadaf502560d1d3c2a1cb8e8cb9991221e14
treed9bcc0c7945ebaed4afdd7f5e25f20c07532bdf0
parent042ca05f0fdc5f4d56a3e9b94bc9cd67bca9a4bc
aacenc: Fix the conditions under which 3GPP pre-echo control is run.

According to the 3GPP spec:
"Thus the pre-echo control is inactive for the first short window (but
not all short windows in a short frame) after a start block and for
all frames with a stop window sequence."

Currently, pre-echo control is only run when the current frame is not
a short frame, and the previous frame is not a short frame.

patch by Nathan Caldwell saintdev (at) gmail

Originally committed as revision 25587 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/aacpsy.c