Don't croak on overlong opustags

This commit is contained in:
Aarni Koskela 2018-09-19 14:42:27 +03:00 committed by Frédéric Mangano-Tarumi
parent 4973a4deab
commit 1a8aaff933

View File

@ -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;
}