diff options
author | Christophe Gisquet <christophe.gisquet@gmail.com> | 2014-09-20 18:23:09 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-20 20:58:43 +0200 |
commit | 9950073655f59632edf751ca2981d3a9d00ca438 (patch) | |
tree | 32d9669a4ff4a876be7e13a52ba2db8956bbce57 /libavcodec | |
parent | a0844935354bc210ecb042101aa9985ed5de975e (diff) | |
download | ffmpeg-9950073655f59632edf751ca2981d3a9d00ca438.tar.gz |
alacenc: remove unneeded masking
The extra bits have already been masked, so this was not doing anything.
Noticed-by: Justin Ruggles
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/alacenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c index fd5bf66005..4e6113b95f 100644 --- a/libavcodec/alacenc.c +++ b/libavcodec/alacenc.c @@ -432,7 +432,7 @@ static void write_element(AlacEncodeContext *s, uint32_t mask = (1 << s->extra_bits) - 1; for (i = 0; i < s->frame_size; i++) { for (j = 0; j < channels; j++) { - put_bits(pb, s->extra_bits, s->predictor_buf[j][i] & mask); + put_bits(pb, s->extra_bits, s->predictor_buf[j][i]); } } } |