mirror of
https://github.com/fmang/opustags.git
synced 2025-01-28 19:05:03 +01:00
Don't croak on overlong opustags
This commit is contained in:
parent
4973a4deab
commit
1a8aaff933
@ -56,8 +56,10 @@ int parse_tags(char *data, long len, opus_tags *tags){
|
||||
if(pos > len)
|
||||
return -1;
|
||||
}
|
||||
if(pos != len)
|
||||
return -1;
|
||||
|
||||
if(pos < len)
|
||||
fprintf(stderr, "warning: %ld unused bytes at the end of the OpusTags packet\n", len - pos);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user