Skip to content

Silence warnings #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libde265/libde265.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package libde265

//#cgo CXXFLAGS: -Ilibde265 -I. -std=c++11 -Wno-constant-conversion -msse4.1
//#cgo CXXFLAGS: -Ilibde265 -I. -std=c++11 -msse4.1
//#cgo CFLAGS: -I.
// #include <stdint.h>
// #include <stdlib.h>
Expand Down
4 changes: 1 addition & 3 deletions libde265/libde265/cabac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,6 @@ int decode_CABAC_TR_bypass(CABAC_decoder* decoder, int cRiceParam, int cTRMax)
}


#define MAX_PREFIX 32

int decode_CABAC_EGk_bypass(CABAC_decoder* decoder, int k)
{
int base=0;
Expand All @@ -433,7 +431,7 @@ int decode_CABAC_EGk_bypass(CABAC_decoder* decoder, int k)
n++;
}

if (n == k+MAX_PREFIX) {
if (n == k+32) {
return 0; // TODO: error
}
}
Expand Down
4 changes: 1 addition & 3 deletions libde265/libde265/slice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2444,8 +2444,6 @@ static int decode_coeff_abs_level_greater2(thread_context* tctx,
}


#define MAX_PREFIX 64

static int decode_coeff_abs_level_remaining(thread_context* tctx,
int cRiceParam)
{
Expand All @@ -2457,7 +2455,7 @@ static int decode_coeff_abs_level_remaining(thread_context* tctx,
prefix++;
codeword = decode_CABAC_bypass(&tctx->cabac_decoder);

if (prefix>MAX_PREFIX) {
if (prefix>64) {
return 0; // TODO: error
}
}
Expand Down