You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
vulkan_ffv1: shortcut +-1 coeffs in symbol reading
Slightly faster, and allows for further optimizations.
This commit is contained in:
@ -119,7 +119,10 @@ int get_isymbol(inout RangeCoder c, uint64_t state)
|
||||
for (e = 0; e < 32; e++)
|
||||
if (!get_rac(c, state + min(e, 9)))
|
||||
break;
|
||||
if (e > 31) {
|
||||
|
||||
if (e == 0) {
|
||||
return get_rac(c, state + 10) ? -1 : 1;
|
||||
} else if (e > 31) {
|
||||
corrupt = true;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user