avformat/utils: fix duration statistic