mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Fix unintended functionality when giving multiple --pu-depth-intra/inter list parameters
This commit is contained in:
parent
cb0c7b23b5
commit
54ef0bbfd2
|
@ -326,6 +326,10 @@ static int parse_pu_depth_list( const char *array, int32_t *depths_min, int32_t
|
||||||
int len = strlen( list );
|
int len = strlen( list );
|
||||||
int retval = 1;
|
int retval = 1;
|
||||||
|
|
||||||
|
//Reset depths in case multiple pu depth parameters are given
|
||||||
|
memset( depths_max, -1, size * sizeof( *depths_max ) );
|
||||||
|
memset( depths_min, -1, size * sizeof( *depths_min ) );
|
||||||
|
|
||||||
token = strtok( list, "," );
|
token = strtok( list, "," );
|
||||||
while( ptr < len && list[ptr + 1] == ',' )
|
while( ptr < len && list[ptr + 1] == ',' )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue