avfilter/f_metadata: avoid float rounding problems