[FFmpeg-devel] [PATCH 2/2] alacenc: remove unneeded masking
Christophe Gisquet
christophe.gisquet at gmail.com
Sat Sep 20 20:23:09 CEST 2014
The extra bits have already properly masked, so this was not doing anything.
---
libavcodec/alacenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c
index fd5bf66..4e6113b 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]);
}
}
}
--
1.9.2.msysgit.0
More information about the ffmpeg-devel
mailing list