mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
avcodec/notchlc: make variables that can be negative as signed
This commit is contained in:
parent
984d0b6e6f
commit
b61733f61f
1 changed files with 3 additions and 2 deletions
|
|
@ -76,12 +76,13 @@ static int lz4_decompress(AVCodecContext *avctx,
|
||||||
GetByteContext *gb,
|
GetByteContext *gb,
|
||||||
PutByteContext *pb)
|
PutByteContext *pb)
|
||||||
{
|
{
|
||||||
unsigned reference_pos, match_length, delta, pos = 0;
|
unsigned reference_pos, delta, pos = 0;
|
||||||
uint8_t history[64 * 1024];
|
uint8_t history[64 * 1024];
|
||||||
|
int match_length;
|
||||||
|
|
||||||
while (bytestream2_get_bytes_left(gb) > 0) {
|
while (bytestream2_get_bytes_left(gb) > 0) {
|
||||||
uint8_t token = bytestream2_get_byte(gb);
|
uint8_t token = bytestream2_get_byte(gb);
|
||||||
unsigned num_literals = token >> 4;
|
int num_literals = token >> 4;
|
||||||
|
|
||||||
if (num_literals == 15) {
|
if (num_literals == 15) {
|
||||||
unsigned char current;
|
unsigned char current;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue