diff options
author | Nikolas Bowe <nbowe-at-google.com@ffmpeg.org> | 2016-09-09 12:48:52 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-09-15 12:18:55 +0200 |
commit | 96cd6f672e5d8c5d49b06de4f24376f36880fea8 (patch) | |
tree | a21fbbd26b2c12c0c932b8f9b8af9e3a7568d836 /libavcodec/ac3.h | |
parent | 6f062eb8d0e17398f225c537d5fd78f5ae880906 (diff) | |
download | ffmpeg-96cd6f672e5d8c5d49b06de4f24376f36880fea8.tar.gz |
avcodec/(e)ac3: Fix target_level for EAC3.
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
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/ac3.h')
-rw-r--r-- | libavcodec/ac3.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3.h b/libavcodec/ac3.h index 747f2f561d..5c9c37727e 100644 --- a/libavcodec/ac3.h +++ b/libavcodec/ac3.h @@ -87,7 +87,7 @@ typedef int16_t SHORTFLOAT; #define AC3_NORM(norm) (1.0f/(norm)) #define AC3_MUL(a,b) ((a) * (b)) #define AC3_RANGE(x) (dynamic_range_tab[(x)]) -#define AC3_HEAVY_RANGE(x) (heavy_dynamic_range_tab[(x)]) +#define AC3_HEAVY_RANGE(x) (ff_ac3_heavy_dynamic_range_tab[(x)]) #define AC3_DYNAMIC_RANGE(x) (powf(x, s->drc_scale)) #define AC3_SPX_BLEND(x) (x)* (1.0f/32) #define AC3_DYNAMIC_RANGE1 1.0f |