On Thu, Jun 13, 2019 at 01:20:20 +0200, Michael Niedermayer wrote: > + if (header->data_min == header->data_max) { Just a note: Equality comparison of floats/doubles may trigger a warning. (Possibly needs to be explicitly enabled though, like with "-Wfloat-equal" on gcc.) Might be okay though nevertheless. Moritz