Signed-off-by: Paul B Mahol <[email protected]>
---
libavcodec/mlz.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/libavcodec/mlz.c b/libavcodec/mlz.c
index ebce796..715ea5c 100644
--- a/libavcodec/mlz.c
+++ b/libavcodec/mlz.c
@@ -112,12 +112,7 @@ static int decode_string(MLZ* mlz, unsigned char *buff,
int string_code, int *fi
}
static int input_code(GetBitContext* gb, int len) {
- int tmp_code = 0;
- int i;
- for (i = 0; i < len; ++i) {
- tmp_code |= get_bits1(gb) << i;
- }
- return tmp_code;
+ return get_bitsz(gb, len);
}
int ff_mlz_decompression(MLZ* mlz, GetBitContext* gb, int size, unsigned char
*buff) {
--
2.9.3
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel