You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/g2meet: Use init_get_bits8()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -253,7 +253,7 @@ static int jpg_decode_data(JPGContext *c, int width, int height,
|
|||||||
return ret;
|
return ret;
|
||||||
jpg_unescape(src, src_size, c->buf, &unesc_size);
|
jpg_unescape(src, src_size, c->buf, &unesc_size);
|
||||||
memset(c->buf + unesc_size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
|
memset(c->buf + unesc_size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
|
||||||
init_get_bits(&gb, c->buf, unesc_size * 8);
|
init_get_bits8(&gb, c->buf, unesc_size);
|
||||||
|
|
||||||
width = FFALIGN(width, 16);
|
width = FFALIGN(width, 16);
|
||||||
mb_w = width >> 4;
|
mb_w = width >> 4;
|
||||||
@@ -326,7 +326,7 @@ static void kempf_restore_buf(const uint8_t *src, int len,
|
|||||||
GetBitContext gb;
|
GetBitContext gb;
|
||||||
int i, j, nb, col;
|
int i, j, nb, col;
|
||||||
|
|
||||||
init_get_bits(&gb, src, len * 8);
|
init_get_bits8(&gb, src, len);
|
||||||
|
|
||||||
if (npal <= 2) nb = 1;
|
if (npal <= 2) nb = 1;
|
||||||
else if (npal <= 4) nb = 2;
|
else if (npal <= 4) nb = 2;
|
||||||
|
Reference in New Issue
Block a user