mirror of
https://github.com/fmang/opustags.git
synced 2025-07-12 04:05:09 +02:00
Don't croak on overlong opustags
This commit is contained in:
committed by
Frédéric Mangano-Tarumi
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user