OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a084493
)
alacenc: remove unneeded masking
author
Christophe Gisquet
<christophe.gisquet@gmail.com>
Sat, 20 Sep 2014 18:23:09 +0000
(18:23 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 20 Sep 2014 18:58:43 +0000
(20:58 +0200)
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>
libavcodec/alacenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/alacenc.c
b/libavcodec/alacenc.c
index
fd5bf66
..
4e6113b
100644
(file)
--- 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]);
}
}
}