avformat: Allocate duration_error separately