]> git.sesse.net Git - ffmpeg/commit
cngdec: Allow flushing the decoder
authorMartin Storsjö <martin@martin.st>
Tue, 30 Oct 2012 10:03:25 +0000 (12:03 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 30 Oct 2012 14:51:25 +0000 (16:51 +0200)
commit6b68223d315aa4daf2e9006f6f37418ca5766698
treec070a755c2c4416fec77bc9aa2651f3ddc160c2c
parent036e6c37d31e471447f71decaea55996bde3d9a2
cngdec: Allow flushing the decoder

After a flush, don't average the output envelope and energy with
previous iterations.

Also start directly from the target values for the first iteration
at startup.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/cngdec.c