[FFmpeg-devel] [PATCH] Fix target_level for EAC3.
Michael Niedermayer
michael at niedermayer.cc
Thu Sep 15 13:06:08 EEST 2016
On Fri, Sep 09, 2016 at 12:48:52PM -0700, Nikolas Bowe wrote:
> Currently when using target_level with EAC3 it produces silence. This small patch fixes target_level for decoding EAC3.
>
> Example:
> ffmpeg -y -i /tmp/test.wav -acodec eac3 -dialnorm -14 -ac 6 -b:a 384000 /tmp/test.m2ts
> ffmpeg -y -target_level -24 -i /tmp/test.m2ts -acodec pcm_s16le -f matroska /tmp/out.mkv
> ffplay /tmp/out.mkv
> ---
> libavcodec/ac3.h | 2 +-
> libavcodec/ac3dec.c | 9 ++++++---
> libavcodec/ac3dec.h | 4 ++++
> libavcodec/eac3dec.c | 14 +++++++++++---
> 4 files changed, 22 insertions(+), 7 deletions(-)
applied
can you add a fate test for this ?
also if you can reduce the number of #if, that would be welcome too
Thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The worst form of inequality is to try to make unequal things equal.
-- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160915/7c0eb451/attachment.sig>
More information about the ffmpeg-devel
mailing list