avformat/hls: fix duration