nokiatech / heif

High Efficiency Image File Format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

incorrect writing and reading of rref

bradh opened this issue · comments

https://github.com/nokiatech/heif/blob/master/srcs/common/requiredreferencetypesproperty.cpp#L39

and

https://github.com/nokiatech/heif/blob/master/srcs/common/requiredreferencetypesproperty.cpp#L52

are treating the count as a 32 bit unsigned value.

Per ISO/IEC 23008-12:2022 Section 6.5.17.2 "Syntax", reference_type_count is an 8 bit unsigned value.