FFMS / ffms2

An FFmpeg based source library and Avisynth/VapourSynth plugin for easy frame accurate access
Other
574 stars 104 forks source link

tests/HDR: Test doubles using relative error instead of equality #355

Closed dwbuiten closed 4 years ago

dwbuiten commented 4 years ago

The source of the values inside libavcodec/libavformat is fixed point, and using DBL_EPSILON is incorrect here, as well as equality.

An error of 1e-5 was chosen based off of the actual hardcoded values in the test.