Fix unintended functionality when giving multiple --pu-depth-intra/inter list parameters

This commit is contained in:
Jaakko Laitinen 2020-03-31 16:39:56 +03:00
parent cb0c7b23b5
commit 54ef0bbfd2

View file

@ -326,6 +326,10 @@ static int parse_pu_depth_list( const char *array, int32_t *depths_min, int32_t
int len = strlen( list );
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, "," );
while( ptr < len && list[ptr + 1] == ',' )
{